Skip to content

Commit

Permalink
Merge pull request #3093 from cgwalters/rust-alias-stateroot
Browse files Browse the repository at this point in the history
rust: Add a `stateroot()` alias in the Rust bindings
  • Loading branch information
cgwalters authored Nov 9, 2023
2 parents 2c774de + 3535b58 commit 331bc17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rust-bindings/src/deployment.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use glib::GString;

use crate::Deployment;

impl Deployment {
/// Access the name of the deployment stateroot.
pub fn stateroot(&self) -> GString {
self.osname()
}
}
1 change: 1 addition & 0 deletions rust-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ mod object_name;
pub use crate::object_name::*;
mod object_details;
pub use crate::object_details::*;
mod deployment;
mod repo;
pub use crate::repo::*;
#[cfg(any(feature = "v2016_8", feature = "dox"))]
Expand Down

0 comments on commit 331bc17

Please sign in to comment.