pub struct Data(pub Vec<u8>);Expand description
A wrapper for binary data that is serialized as Base64.
This type is useful when you want to serialize binary data in a graph to
JSON. It is also the serialization behavior of the Data type in Swift.
Tuple Fields§
§0: Vec<u8>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Data
impl<'de> Deserialize<'de> for Data
Source§fn deserialize<D>(deserializer: D) -> Result<Data, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Data, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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