pub struct Key {
pub subkeys: Vec<Xattr>,
}
Fields§
§subkeys: Vec<Xattr>
Implementations§
Source§impl Key
impl Key
pub fn new(subkeys: Vec<Xattr>) -> Self
pub fn from_string<S: ToString>(s: S) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn to_string(&self) -> String
pub fn to_minimal_string(&self) -> String
pub fn iter(&self) -> Iter<'_, Xattr>
pub fn value_for_record(&self, record: &Record) -> Result<Vec<Value>>
pub fn path_for_record( &self, base_path: PathBuf, record: &Record, ) -> Result<PathBuf>
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Key
impl<'a> Deserialize<'a> for Key
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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