pub struct WordAttribute<'a> {
pub key: &'a str,
pub value: Option<&'a str>,
pub value_raw: Option<&'a [u8]>,
}Expand description
Represents a key-value pair in a Mikrotik [Sentence].
Fields§
§key: &'a strThe key of the attribute.
value: Option<&'a str>The value of the attribute, if present and in valid UTF-8.
value_raw: Option<&'a [u8]>The value of the attribute, if present, in bytes.
Trait Implementations§
Source§impl<'a> Debug for WordAttribute<'a>
impl<'a> Debug for WordAttribute<'a>
Source§impl<'a> PartialEq for WordAttribute<'a>
impl<'a> PartialEq for WordAttribute<'a>
Source§impl<'a> TryFrom<&'a [u8]> for WordAttribute<'a>
impl<'a> TryFrom<&'a [u8]> for WordAttribute<'a>
impl<'a> StructuralPartialEq for WordAttribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for WordAttribute<'a>
impl<'a> RefUnwindSafe for WordAttribute<'a>
impl<'a> Send for WordAttribute<'a>
impl<'a> Sync for WordAttribute<'a>
impl<'a> Unpin for WordAttribute<'a>
impl<'a> UnwindSafe for WordAttribute<'a>
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