pub struct Bytes(pub Vec<u8>);
Expand description
Raw bytes wrapper
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Bytes
impl<'a> Deserialize<'a> for Bytes
Source§fn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Tokenizable for Bytes
impl Tokenizable for Bytes
Source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere
T: Tokenizable,
Source§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere
T: Tokenizable,
Source§fn into_tokens(self) -> Vec<Token>
fn into_tokens(self) -> Vec<Token>
Convert to list of tokens