axum_codec

Trait CodecDecode

Source
pub trait CodecDecode<'de>:
    Deserialize<'de>
    + BorrowDecode<'de>
    + Decode<'de>
    + Validate { }
Expand description

Decoder trait for deserializing bytes into all supported formats.

Note that feature flags affect this trait differently than normal. In this case, feature flags further restrict the trait instead of being additive. This may change in the future.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'de, T> CodecDecode<'de> for T
where T: Deserialize<'de> + BorrowDecode<'de> + Decode<'de> + Validate,