Module adapter

Module adapter 

Source

Structs§

IdentityAdapter
No-op adapter. Used if the key of a map is an adapted type, but the value isn’t, or vice versa.
LayeredThriftAdapter
ListMapAdapter
Transforms the given adapter A into an adapter with the signature Vec<StandardType> -> Vec<AdaptedType>. Because Rust doesn’t have HKT, we cannot make this “generic” over multiple collection types.
MapMapAdapter
Transforms the given adapter KA and KV into an adapter with the signature BTreeMap<KA::StandardType, KV::StandardType> -> BTreeMap<KA::AdaptedType, KV::AdaptedType>. Because Rust doesn’t have HKT, we cannot make this “generic” over multiple collection types.
SetMapAdapter
Transforms the given adapter A into an adapter with the signature BTreeSet<StandardType> -> BTreeSet<AdaptedType>. Because Rust doesn’t have HKT, we cannot make this “generic” over multiple collection types.

Traits§

NewTypeAdapter
Convenience trait for newtype adapters.
ThriftAdapter