pub struct Builder<T>(/* private fields */);
Expand description
A builder for SearchDatasetsByTextResponse
Implementations§
Source§impl Builder<PageResponseStage>
impl Builder<PageResponseStage>
Sourcepub fn page_response(self, page_response: PageResponse) -> Builder<Complete>
pub fn page_response(self, page_response: PageResponse) -> Builder<Complete>
Sets the page_response
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn push_results(self, results: EnrichedDataset) -> Self
pub fn push_results(self, results: EnrichedDataset) -> Self
Adds a value to the results
field.
Sourcepub fn results(self, results: impl IntoIterator<Item = EnrichedDataset>) -> Self
pub fn results(self, results: impl IntoIterator<Item = EnrichedDataset>) -> Self
Sets the results
field.
Sourcepub fn extend_results(
self,
results: impl IntoIterator<Item = EnrichedDataset>,
) -> Self
pub fn extend_results( self, results: impl IntoIterator<Item = EnrichedDataset>, ) -> Self
Adds values to the results
field.
Sourcepub fn page_response(self, page_response: PageResponse) -> Self
pub fn page_response(self, page_response: PageResponse) -> Self
Sets the page_response
field.
Sourcepub fn build(self) -> SearchDatasetsByTextResponse
pub fn build(self) -> SearchDatasetsByTextResponse
Consumes the builder, returning a SearchDatasetsByTextResponse
.
Trait Implementations§
Source§impl Default for Builder<PageResponseStage>
impl Default for Builder<PageResponseStage>
Source§impl From<SearchDatasetsByTextResponse> for Builder<Complete>
impl From<SearchDatasetsByTextResponse> for Builder<Complete>
Source§fn from(v: SearchDatasetsByTextResponse) -> Self
fn from(v: SearchDatasetsByTextResponse) -> 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