pub struct CsvCodecFactory;Expand description
Factory for creating CSV/TSV/PSV codecs.
Creates CsvCodec instances with the appropriate delimiter for
each content type.
Implementations§
Trait Implementations§
Source§impl ContentCodecFactory for CsvCodecFactory
impl ContentCodecFactory for CsvCodecFactory
Source§fn create(&self, content_type: &ContentType) -> Option<Box<dyn ContentCodec>>
fn create(&self, content_type: &ContentType) -> Option<Box<dyn ContentCodec>>
Create a codec for the given content type. Read more
Source§fn supported_content_types(&self) -> Vec<&str>
fn supported_content_types(&self) -> Vec<&str>
List all content types this factory supports.
Auto Trait Implementations§
impl Freeze for CsvCodecFactory
impl RefUnwindSafe for CsvCodecFactory
impl Send for CsvCodecFactory
impl Sync for CsvCodecFactory
impl Unpin for CsvCodecFactory
impl UnsafeUnpin for CsvCodecFactory
impl UnwindSafe for CsvCodecFactory
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