pub struct StreamBodyAsOptions {
pub buffering_ready_items: Option<usize>,
pub buffering_bytes: Option<usize>,
pub content_type: Option<HttpHeaderValue>,
}Fields§
§buffering_ready_items: Option<usize>§buffering_bytes: Option<usize>§content_type: Option<HttpHeaderValue>Implementations§
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn new() -> Self
pub fn buffering_ready_items(self, ready_items: usize) -> Self
pub fn buffering_bytes(self, ready_bytes: usize) -> Self
pub fn content_type(self, content_type: HttpHeaderValue) -> Self
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn json_array<'a, S, T>(self, stream: S) -> StreamBodyAs<'a>
pub fn json_array_with_errors<'a, S, T, E>(self, stream: S) -> StreamBodyAs<'a>
pub fn json_array_with_envelope<'a, S, T, EN>( self, stream: S, envelope: EN, array_field: &str, ) -> StreamBodyAs<'a>
pub fn json_array_with_envelope_errors<'a, S, T, E, EN>( self, stream: S, envelope: EN, array_field: &str, ) -> StreamBodyAs<'a>
pub fn json_nl<'a, S, T>(self, stream: S) -> StreamBodyAs<'a>
pub fn json_nl_with_errors<'a, S, T, E>(self, stream: S) -> StreamBodyAs<'a>
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn csv<'a, S, T>(self, stream: S) -> StreamBodyAs<'a>
pub fn csv_with_errors<'a, S, T, E>(self, stream: S) -> StreamBodyAs<'a>
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn text<'a, S>(self, stream: S) -> StreamBodyAs<'a>
pub fn text_with_errors<'a, S, E>(self, stream: S) -> StreamBodyAs<'a>
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn protobuf<'a, S, T>(self, stream: S) -> StreamBodyAs<'a>
pub fn protobuf_with_errors<'a, S, T, E>(self, stream: S) -> StreamBodyAs<'a>
Source§impl StreamBodyAsOptions
impl StreamBodyAsOptions
pub fn arrow_ipc<'a, S>(self, schema: SchemaRef, stream: S) -> StreamBodyAs<'a>
pub fn arrow_ipc_with_errors<'a, S, E>( self, schema: SchemaRef, stream: S, ) -> StreamBodyAs<'a>
pub fn arrow_ipc_with_options<'a, S>( self, schema: SchemaRef, stream: S, options: IpcWriteOptions, ) -> StreamBodyAs<'a>
pub fn arrow_ipc_with_options_errors<'a, S, E>( self, schema: SchemaRef, stream: S, options: IpcWriteOptions, ) -> StreamBodyAs<'a>
Auto Trait Implementations§
impl !Freeze for StreamBodyAsOptions
impl RefUnwindSafe for StreamBodyAsOptions
impl Send for StreamBodyAsOptions
impl Sync for StreamBodyAsOptions
impl Unpin for StreamBodyAsOptions
impl UnsafeUnpin for StreamBodyAsOptions
impl UnwindSafe for StreamBodyAsOptions
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