pub struct AttributeKey(/* private fields */);Expand description
A validated inode attribute name from 1 to 128 UTF-8 bytes without control characters.
Names are byte-exact; writes reject the reserved loonfs. prefix even though
the type accepts it.
Implementations§
Source§impl AttributeKey
impl AttributeKey
Source§impl AttributeKey
impl AttributeKey
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Reports whether this key names a system-owned attribute.
Trait Implementations§
Source§impl AsRef<str> for AttributeKey
impl AsRef<str> for AttributeKey
Source§impl Borrow<str> for AttributeKey
impl Borrow<str> for AttributeKey
Source§impl Clone for AttributeKey
impl Clone for AttributeKey
Source§impl Debug for AttributeKey
impl Debug for AttributeKey
Source§impl<'de> Deserialize<'de> for AttributeKey
impl<'de> Deserialize<'de> for AttributeKey
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AttributeKey
impl Display for AttributeKey
impl Eq for AttributeKey
Source§impl FromStr for AttributeKey
impl FromStr for AttributeKey
Source§impl Hash for AttributeKey
impl Hash for AttributeKey
Source§impl Ord for AttributeKey
impl Ord for AttributeKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AttributeKey
impl PartialEq for AttributeKey
Source§impl PartialOrd for AttributeKey
impl PartialOrd for AttributeKey
Source§impl Serialize for AttributeKey
impl Serialize for AttributeKey
impl StructuralPartialEq for AttributeKey
Source§impl TryFrom<&str> for AttributeKey
impl TryFrom<&str> for AttributeKey
Auto Trait Implementations§
impl Freeze for AttributeKey
impl RefUnwindSafe for AttributeKey
impl Send for AttributeKey
impl Sync for AttributeKey
impl Unpin for AttributeKey
impl UnsafeUnpin for AttributeKey
impl UnwindSafe for AttributeKey
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