pub struct StreamFetchRequestBuilder<R> { /* private fields */ }
Expand description
Builder for StreamFetchRequest
.
Implementations§
source§impl<R: Clone> StreamFetchRequestBuilder<R>
impl<R: Clone> StreamFetchRequestBuilder<R>
pub fn topic<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn partition<VALUE: Into<PartitionId>>(&mut self, value: VALUE) -> &mut Self
pub fn fetch_offset<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn max_bytes<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn isolation<VALUE: Into<Isolation>>(&mut self, value: VALUE) -> &mut Self
pub fn smartmodules<VALUE: Into<Vec<SmartModuleInvocation>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn consumer_id<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn build(
&self,
) -> Result<StreamFetchRequest<R>, StreamFetchRequestBuilderError>
pub fn build( &self, ) -> Result<StreamFetchRequest<R>, StreamFetchRequestBuilderError>
Trait Implementations§
source§impl<R: Clone> Clone for StreamFetchRequestBuilder<R>
impl<R: Clone> Clone for StreamFetchRequestBuilder<R>
source§fn clone(&self) -> StreamFetchRequestBuilder<R>
fn clone(&self) -> StreamFetchRequestBuilder<R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<R> Freeze for StreamFetchRequestBuilder<R>
impl<R> RefUnwindSafe for StreamFetchRequestBuilder<R>where
R: RefUnwindSafe,
impl<R> Send for StreamFetchRequestBuilder<R>where
R: Send,
impl<R> Sync for StreamFetchRequestBuilder<R>where
R: Sync,
impl<R> Unpin for StreamFetchRequestBuilder<R>where
R: Unpin,
impl<R> UnwindSafe for StreamFetchRequestBuilder<R>where
R: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)