Struct aws_sdk_cloudsearchdomain::types::builders::HitsBuilder
source · #[non_exhaustive]pub struct HitsBuilder { /* private fields */ }
Expand description
A builder for Hits
.
Implementations§
source§impl HitsBuilder
impl HitsBuilder
sourcepub fn found(self, input: i64) -> Self
pub fn found(self, input: i64) -> Self
The total number of documents that match the search request.
sourcepub fn set_found(self, input: Option<i64>) -> Self
pub fn set_found(self, input: Option<i64>) -> Self
The total number of documents that match the search request.
sourcepub fn get_found(&self) -> &Option<i64>
pub fn get_found(&self) -> &Option<i64>
The total number of documents that match the search request.
sourcepub fn cursor(self, input: impl Into<String>) -> Self
pub fn cursor(self, input: impl Into<String>) -> Self
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
sourcepub fn set_cursor(self, input: Option<String>) -> Self
pub fn set_cursor(self, input: Option<String>) -> Self
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
sourcepub fn get_cursor(&self) -> &Option<String>
pub fn get_cursor(&self) -> &Option<String>
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
sourcepub fn hit(self, input: Hit) -> Self
pub fn hit(self, input: Hit) -> Self
Appends an item to hit
.
To override the contents of this collection use set_hit
.
A document that matches the search request.
Trait Implementations§
source§impl Clone for HitsBuilder
impl Clone for HitsBuilder
source§fn clone(&self) -> HitsBuilder
fn clone(&self) -> HitsBuilder
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 moresource§impl Debug for HitsBuilder
impl Debug for HitsBuilder
source§impl Default for HitsBuilder
impl Default for HitsBuilder
source§fn default() -> HitsBuilder
fn default() -> HitsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HitsBuilder
impl PartialEq for HitsBuilder
source§fn eq(&self, other: &HitsBuilder) -> bool
fn eq(&self, other: &HitsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HitsBuilder
Auto Trait Implementations§
impl Freeze for HitsBuilder
impl RefUnwindSafe for HitsBuilder
impl Send for HitsBuilder
impl Sync for HitsBuilder
impl Unpin for HitsBuilder
impl UnwindSafe for HitsBuilder
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>
Creates a shared type from an unshared type.