pub enum MetadataValue {
Ascii(String),
Binary(Vec<u8>),
}Expand description
A validated ASCII value or an unencoded binary value.
Variants§
Ascii(String)
Printable ASCII bytes, with horizontal tabs accepted from incoming headers.
Binary(Vec<u8>)
Raw bytes associated with a -bin key.
Trait Implementations§
Source§impl Clone for MetadataValue
impl Clone for MetadataValue
Source§impl Debug for MetadataValue
impl Debug for MetadataValue
impl Eq for MetadataValue
Source§impl PartialEq for MetadataValue
impl PartialEq for MetadataValue
impl StructuralPartialEq for MetadataValue
Auto Trait Implementations§
impl Freeze for MetadataValue
impl RefUnwindSafe for MetadataValue
impl Send for MetadataValue
impl Sync for MetadataValue
impl Unpin for MetadataValue
impl UnsafeUnpin for MetadataValue
impl UnwindSafe for MetadataValue
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