Skip to main content

Module bytes_wrapper

Module bytes_wrapper 

Source

Modulesยง

encoding_serializer ๐Ÿ”’
Contains implementation details for EncodingSerializer.

Structsยง

B16Encoding
Hex BytesEncoding.
B64Encoding
Base64 BytesEncoding
ByteBufDeserializer
A Deserializer owning a Vec<u8> that always calls serde::de::Visitor::visit_byte_buf.
BytesWrapper
Wraps a type T that uses the byte array serde data type for serialization so that the serde string data type is used instead, according to BytesEncoding O::Encoding.
ChangeVisitorType
Changes the VisitorType of the given Options to VT.
EncodedBytesVisitor ๐Ÿ”’
Extracts a O::Value from the given Deserializer by extracting a string, decoding this to a byte array according to BytesEncoding O::Encoding, and finally passing this byte array to the Deserialize implementation of T.

Enumsยง

VisitorType
Enumerates the ways in which a sequence of bytes may be visited during deserialization.

Constantsยง

VT_BORROWED_BYTE_ARRAY ๐Ÿ”’
VT_BYTE_SEQUENCE ๐Ÿ”’
VT_OWNED_BYTE_ARRAY ๐Ÿ”’
VT_TRANSIENT_BYTE_ARRAY ๐Ÿ”’

Traitsยง

BytesEncoding
Trait for specifying the encoding of bytes as strings, like hex or base64.
Options
Determines how exactly BytesWrapper should wrap the underlying type.

Type Aliasesยง

B16
Wrapper around T implementing (de)serialization using hex-encoding.
B64
Wrapper around T implementing (de)serialization using base64ct::Base64.
B64UU
Wrapper around T implementing (de)serialization using base64ct::Base64UrlUnpadded.