pub enum ByteSeq {
Text(String),
Bytes(Vec<u8>),
}Expand description
Bytes given as a UTF-8 string or as an array of byte values.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ByteSeq
impl<'de> Deserialize<'de> for ByteSeq
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
impl Eq for ByteSeq
impl StructuralPartialEq for ByteSeq
Auto Trait Implementations§
impl Forget for ByteSeq
impl Freeze for ByteSeq
impl RefUnwindSafe for ByteSeq
impl Send for ByteSeq
impl Sync for ByteSeq
impl Unpin for ByteSeq
impl UnsafeUnpin for ByteSeq
impl UnwindSafe for ByteSeq
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