pub struct CsvStreamFormat { /* private fields */ }
Implementations§
Source§impl CsvStreamFormat
impl CsvStreamFormat
pub fn new(has_headers: bool, delimiter: u8) -> Self
Sourcepub fn with_flexible(self, flexible: bool) -> Self
pub fn with_flexible(self, flexible: bool) -> Self
Sets whether to use flexible serialize.
Sourcepub fn with_quote_style(self, quote_style: QuoteStyle) -> Self
pub fn with_quote_style(self, quote_style: QuoteStyle) -> Self
Sets the quote style to use.
Sourcepub fn with_quote(self, quote: u8) -> Self
pub fn with_quote(self, quote: u8) -> Self
Sets the quote character to use.
Sourcepub fn with_double_quote(self, double_quote: bool) -> Self
pub fn with_double_quote(self, double_quote: bool) -> Self
Sets whether to double quote.
Sourcepub fn with_escape(self, escape: u8) -> Self
pub fn with_escape(self, escape: u8) -> Self
Sets the escape character to use.
Sourcepub fn with_terminator(self, terminator: Terminator) -> Self
pub fn with_terminator(self, terminator: Terminator) -> Self
Sets the line terminator to use.
Sourcepub fn with_delimiter(self, delimiter: u8) -> Self
pub fn with_delimiter(self, delimiter: u8) -> Self
Set the field delimiter to use.
Sourcepub fn with_has_headers(self, has_headers: bool) -> Self
pub fn with_has_headers(self, has_headers: bool) -> Self
Set whether to write headers.
Trait Implementations§
Source§impl Default for CsvStreamFormat
impl Default for CsvStreamFormat
Source§impl<T> StreamingFormat<T> for CsvStreamFormat
impl<T> StreamingFormat<T> for CsvStreamFormat
fn to_bytes_stream<'a, 'b>( &'a self, stream: BoxStream<'b, Result<T, Error>>, _: &'a StreamBodyAsOptions, ) -> BoxStream<'b, Result<Bytes, Error>>
fn http_response_headers( &self, options: &StreamBodyAsOptions, ) -> Option<HeaderMap>
Auto Trait Implementations§
impl Freeze for CsvStreamFormat
impl RefUnwindSafe for CsvStreamFormat
impl Send for CsvStreamFormat
impl Sync for CsvStreamFormat
impl Unpin for CsvStreamFormat
impl UnwindSafe for CsvStreamFormat
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