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) } } }