summary refs log tree commit diff
path: root/libsecret/src/schema_attribute.rs
blob: 562381aa235d373f3c723e6def1ceffb40b890ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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) }
    }
}