pub struct Base64;Expand description
Base64 with the standard alphabet and padding (RFC 4648 section 4).
This is the default representation of bytes. Decoding is lenient (see adapters documentation).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Base64
impl RefUnwindSafe for Base64
impl Send for Base64
impl Sync for Base64
impl Unpin for Base64
impl UnsafeUnpin for Base64
impl UnwindSafe for Base64
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
impl<F> BytesFallbackFormat for Fwhere
F: BytesFallbackFormatImpl,
Source§impl<'de, const CAP: usize, E> DeserializeAs<'de, ArrayVec<u8, CAP>> for Ewhere
E: BytesEncoding,
impl<'de, const CAP: usize, E> DeserializeAs<'de, ArrayVec<u8, CAP>> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<ArrayVec<u8, CAP>>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<ArrayVec<u8, CAP>>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, E> DeserializeAs<'de, BString> for Ewhere
E: BytesEncoding,
impl<'de, E> DeserializeAs<'de, BString> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<BString>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<BString>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, E> DeserializeAs<'de, Bytes> for Ewhere
E: BytesEncoding,
impl<'de, E> DeserializeAs<'de, Bytes> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<Bytes>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<Bytes>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, E> DeserializeAs<'de, BytesMut> for Ewhere
E: BytesEncoding,
impl<'de, E> DeserializeAs<'de, BytesMut> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<BytesMut>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<BytesMut>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, 'c, E> DeserializeAs<'de, Cow<'c, [u8]>> for Ewhere
E: BytesEncoding,
impl<'de, 'c, E> DeserializeAs<'de, Cow<'c, [u8]>> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<Cow<'c, [u8]>>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<Cow<'c, [u8]>>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, const N: usize, E> DeserializeAs<'de, SmallVec<[u8; N]>> for Ewhere
E: BytesEncoding,
impl<'de, const N: usize, E> DeserializeAs<'de, SmallVec<[u8; N]>> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<SmallVec<[u8; N]>>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<SmallVec<[u8; N]>>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, E> DeserializeAs<'de, Vec<u8>> for Ewhere
E: BytesEncoding,
impl<'de, E> DeserializeAs<'de, Vec<u8>> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<Vec<u8>>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<Vec<u8>>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<'de, const N: usize, E> DeserializeAs<'de, [u8; N]> for Ewhere
E: BytesEncoding,
impl<'de, const N: usize, E> DeserializeAs<'de, [u8; N]> for Ewhere
E: BytesEncoding,
Source§fn deserialize_into_as<'a>(
out: &'a mut Option<[u8; N]>,
state: &mut State,
) -> SinkHandle<'a, 'de>
fn deserialize_into_as<'a>( out: &'a mut Option<[u8; N]>, state: &mut State, ) -> SinkHandle<'a, 'de>
Creates a sink that deserializes the value into the given slot. Read more
Source§fn initial_value_as() -> Option<T>
fn initial_value_as() -> Option<T>
Provides the value of a missing struct field. Read more
Source§fn deserialize_update_as<'out>(
value: &'out mut T,
state: &mut State,
) -> SinkHandle<'out, 'de>
fn deserialize_update_as<'out>( value: &'out mut T, state: &mut State, ) -> SinkHandle<'out, 'de>
Creates a sink that updates an existing value. Read more
Source§impl<const CAP: usize, E> SerializeAs<ArrayVec<u8, CAP>> for Ewhere
E: BytesEncoding,
impl<const CAP: usize, E> SerializeAs<ArrayVec<u8, CAP>> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a ArrayVec<u8, CAP>,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a ArrayVec<u8, CAP>, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a ArrayVec<u8, CAP>, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<E> SerializeAs<BString> for Ewhere
E: BytesEncoding,
impl<E> SerializeAs<BString> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a BString,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a BString, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a BString, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<E> SerializeAs<Bytes> for Ewhere
E: BytesEncoding,
impl<E> SerializeAs<Bytes> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a Bytes,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a Bytes, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a Bytes, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<E> SerializeAs<BytesMut> for Ewhere
E: BytesEncoding,
impl<E> SerializeAs<BytesMut> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a BytesMut,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a BytesMut, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a BytesMut, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<'c, E> SerializeAs<Cow<'c, [u8]>> for Ewhere
E: BytesEncoding,
impl<'c, E> SerializeAs<Cow<'c, [u8]>> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a Cow<'c, [u8]>,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a Cow<'c, [u8]>, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a Cow<'c, [u8]>, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<const N: usize, E> SerializeAs<SmallVec<[u8; N]>> for Ewhere
E: BytesEncoding,
impl<const N: usize, E> SerializeAs<SmallVec<[u8; N]>> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a SmallVec<[u8; N]>,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a SmallVec<[u8; N]>, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a SmallVec<[u8; N]>, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<E> SerializeAs<Vec<u8>> for Ewhere
E: BytesEncoding,
impl<E> SerializeAs<Vec<u8>> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a Vec<u8>,
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a Vec<u8>, _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a Vec<u8>, state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more
Source§impl<const N: usize, E> SerializeAs<[u8; N]> for Ewhere
E: BytesEncoding,
impl<const N: usize, E> SerializeAs<[u8; N]> for Ewhere
E: BytesEncoding,
Source§fn serialize_as<'a>(
value: &'a [u8; N],
_state: &mut State,
) -> Result<Chunk<'a>, Error>
fn serialize_as<'a>( value: &'a [u8; N], _state: &mut State, ) -> Result<Chunk<'a>, Error>
Serializes the value. Read more
fn __private_begin_as<'a>( value: &'a [u8; N], state: &mut State, ) -> Result<Begin<'a>, Error>
Source§fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
fn finish_as(value: &T, state: &mut State) -> Result<(), Error>
Invoked after the serialization finished. Read more
Source§fn is_optional_as(value: &T) -> bool
fn is_optional_as(value: &T) -> bool
Checks if the value represents an optional value. Read more
Source§fn container_shape_as(value: &T) -> ContainerShape
fn container_shape_as(value: &T) -> ContainerShape
Returns the shape of the value if it’s a map or sequence. Read more