pub struct Builder<T>(/* private fields */);Expand description
A builder for SearchChannelsRequest
Implementations§
Source§impl Builder<ScopeStage>
impl Builder<ScopeStage>
Sourcepub fn scope(self, scope: ChannelSearchDataFrame) -> Builder<QueryStage>
pub fn scope(self, scope: ChannelSearchDataFrame) -> Builder<QueryStage>
Sets the scope field.
Source§impl Builder<QueryStage>
impl Builder<QueryStage>
Sourcepub fn query(self, query: ChannelSearchQuery) -> Builder<ContextStage>
pub fn query(self, query: ChannelSearchQuery) -> Builder<ContextStage>
Sets the query field.
Source§impl Builder<ContextStage>
impl Builder<ContextStage>
Sourcepub fn context(self, context: Context) -> Builder<TimeRangeStage>
pub fn context(self, context: Context) -> Builder<TimeRangeStage>
Sets the context field.
Source§impl Builder<TimeRangeStage>
impl Builder<TimeRangeStage>
Sourcepub fn time_range(self, time_range: Range) -> Builder<Complete>
pub fn time_range(self, time_range: Range) -> Builder<Complete>
Sets the time_range field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn scope(self, scope: ChannelSearchDataFrame) -> Self
pub fn scope(self, scope: ChannelSearchDataFrame) -> Self
Sets the scope field.
Sourcepub fn query(self, query: ChannelSearchQuery) -> Self
pub fn query(self, query: ChannelSearchQuery) -> Self
Sets the query field.
Sourcepub fn time_range(self, time_range: Range) -> Self
pub fn time_range(self, time_range: Range) -> Self
Sets the time_range field.
Sourcepub fn max_result_channels(
self,
max_result_channels: impl Into<Option<i32>>,
) -> Self
pub fn max_result_channels( self, max_result_channels: impl Into<Option<i32>>, ) -> Self
Sets the max_result_channels field.
Sourcepub fn build(self) -> SearchChannelsRequest
pub fn build(self) -> SearchChannelsRequest
Consumes the builder, returning a SearchChannelsRequest.
Trait Implementations§
Source§impl Default for Builder<ScopeStage>
impl Default for Builder<ScopeStage>
Source§impl From<SearchChannelsRequest> for Builder<Complete>
impl From<SearchChannelsRequest> for Builder<Complete>
Source§fn from(v: SearchChannelsRequest) -> Self
fn from(v: SearchChannelsRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Builder<T>where
T: 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request