pub struct Metadata { /* private fields */ }
Expand description
Information about the given node/entry. Returned by Key::metadata or KeyRing::metadata
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn get_perms(&self) -> KeyPermissions
pub fn get_perms(&self) -> KeyPermissions
The current permissions of this entry
Sourcepub fn get_description(&self) -> &str
pub fn get_description(&self) -> &str
The description for this entry
Trait Implementations§
Source§impl FromStr for Metadata
impl FromStr for Metadata
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
The returned string contains the following information about the key:
type;uid;gid;perm;description
And is then parsed into a valid Metadata struct.
In the above, type and description are strings, uid and gid are decimal strings, and perm is a hexadecimal permissions mask.
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more