pub enum TagValue<'a> {
Number(u32),
Timestamp(u64),
Boolean(bool),
String(&'a str),
None,
}
Expand description
Possible values of message tags.
Variants§
Number(u32)
Represents a parsed sequence of numbers of type u32.
Timestamp(u64)
Represents a parsed sequence of numbers of type u64.
Boolean(bool)
Boolean values represents literal “1” (true) or “0” (false).
Note that a single digit number “1” or “0” may be represented as a Boolean value instead of a Number value. Type conversion should therefore be done by the user code.
String(&'a str)
Strings represent an unparsed string literal.
None
None represents literal empty string “”.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for TagValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for TagValue<'a>
impl<'a> RefUnwindSafe for TagValue<'a>
impl<'a> Send for TagValue<'a>
impl<'a> Sync for TagValue<'a>
impl<'a> Unpin for TagValue<'a>
impl<'a> UnwindSafe for TagValue<'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