diff options
Diffstat (limited to 'libsecret/src/schema_attribute.rs')
-rw-r--r-- | libsecret/src/schema_attribute.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libsecret/src/schema_attribute.rs b/libsecret/src/schema_attribute.rs new file mode 100644 index 0000000..562381a --- /dev/null +++ b/libsecret/src/schema_attribute.rs @@ -0,0 +1,12 @@ +use crate::{SchemaAttribute, SchemaAttributeType}; +use glib::translate::*; + +impl SchemaAttribute { + pub fn type_(&self) -> SchemaAttributeType { + unsafe { from_glib((*(self.as_ptr())).type_) } + } + + pub fn name(&self) -> glib::GString { + unsafe { from_glib_none((*(self.as_ptr())).name) } + } +} |