pub struct Builder<T>(/* private fields */);
Expand description
A builder for SearchChannelsRequest
Implementations§
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn fuzzy_search_text(self, fuzzy_search_text: impl Into<String>) -> Self
pub fn fuzzy_search_text(self, fuzzy_search_text: impl Into<String>) -> Self
Sets the fuzzy_search_text
field.
Sourcepub fn insert_exact_match(self, exact_match: impl Into<String>) -> Self
pub fn insert_exact_match(self, exact_match: impl Into<String>) -> Self
Adds a value to the exact_match
field.
Sourcepub fn exact_match(
self,
exact_match: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn exact_match( self, exact_match: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sets the exact_match
field.
Sourcepub fn extend_exact_match(
self,
exact_match: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn extend_exact_match( self, exact_match: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Adds values to the exact_match
field.
Sourcepub fn insert_data_sources(self, data_sources: DataSourceRid) -> Self
pub fn insert_data_sources(self, data_sources: DataSourceRid) -> Self
Adds a value to the data_sources
field.
Sourcepub fn data_sources(
self,
data_sources: impl IntoIterator<Item = DataSourceRid>,
) -> Self
pub fn data_sources( self, data_sources: impl IntoIterator<Item = DataSourceRid>, ) -> Self
Sets the data_sources
field.
Sourcepub fn extend_data_sources(
self,
data_sources: impl IntoIterator<Item = DataSourceRid>,
) -> Self
pub fn extend_data_sources( self, data_sources: impl IntoIterator<Item = DataSourceRid>, ) -> Self
Adds values to the data_sources
field.
Sourcepub fn previously_selected_channels(
self,
previously_selected_channels: impl Into<Option<BTreeMap<DataSourceRid, BTreeSet<Channel>>>>,
) -> Self
pub fn previously_selected_channels( self, previously_selected_channels: impl Into<Option<BTreeMap<DataSourceRid, BTreeSet<Channel>>>>, ) -> Self
Sets the previously_selected_channels
field.
Sourcepub fn next_page_token(self, next_page_token: impl Into<Option<Token>>) -> Self
pub fn next_page_token(self, next_page_token: impl Into<Option<Token>>) -> Self
Sets the next_page_token
field.
Sourcepub fn build(self) -> SearchChannelsRequest
pub fn build(self) -> SearchChannelsRequest
Consumes the builder, returning a SearchChannelsRequest
.
Trait Implementations§
Source§impl Default for Builder<FuzzySearchTextStage>
impl Default for Builder<FuzzySearchTextStage>
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> 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