pub trait Serializer<Dto> {
    // Required method
    fn serialize(&self, value: Serializable<Dto>) -> DceResult<Serialized>;
}

Required Methods§

Trait Implementations§

source§

impl<Dto> Debug for dyn Serializer<Dto> + Send + Sync

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

source§

impl<Dto> Serializer<Dto> for UnreachableSerializer

source§

impl<Dto: Into<Serialized> + 'static> Serializer<Dto> for StringSerializer

source§

impl<Dto: Serialize + 'static> Serializer<Dto> for JsonSerializer