pub struct SerializerRegistry { /* private fields */ }Expand description
Registry of available serializers
Implementations§
Source§impl SerializerRegistry
impl SerializerRegistry
Sourcepub fn default_serializer(&self) -> SerializerType
pub fn default_serializer(&self) -> SerializerType
Get the default serializer type
Sourcepub fn get(&self, content_type: &str) -> SerializerResult<SerializerType>
pub fn get(&self, content_type: &str) -> SerializerResult<SerializerType>
Get a serializer by content type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerializerRegistry
impl RefUnwindSafe for SerializerRegistry
impl Send for SerializerRegistry
impl Sync for SerializerRegistry
impl Unpin for SerializerRegistry
impl UnwindSafe for SerializerRegistry
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