diff --git a/rust-bindings/src/deployment.rs b/rust-bindings/src/deployment.rs new file mode 100644 index 0000000000..d408ce0d10 --- /dev/null +++ b/rust-bindings/src/deployment.rs @@ -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() + } +} diff --git a/rust-bindings/src/lib.rs b/rust-bindings/src/lib.rs index 69a72cdc4a..71e33f157e 100644 --- a/rust-bindings/src/lib.rs +++ b/rust-bindings/src/lib.rs @@ -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"))]