#[non_exhaustive]pub struct BucketInfoBuilder { /* private fields */ }
Expand description
A builder for BucketInfo
.
Implementations§
source§impl BucketInfoBuilder
impl BucketInfoBuilder
sourcepub fn buckets(self, input: Bucket) -> Self
pub fn buckets(self, input: Bucket) -> Self
Appends an item to buckets
.
To override the contents of this collection use set_buckets
.
A list of the calculated facet values and counts.
sourcepub fn set_buckets(self, input: Option<Vec<Bucket>>) -> Self
pub fn set_buckets(self, input: Option<Vec<Bucket>>) -> Self
A list of the calculated facet values and counts.
sourcepub fn get_buckets(&self) -> &Option<Vec<Bucket>>
pub fn get_buckets(&self) -> &Option<Vec<Bucket>>
A list of the calculated facet values and counts.
sourcepub fn build(self) -> BucketInfo
pub fn build(self) -> BucketInfo
Consumes the builder and constructs a BucketInfo
.
Trait Implementations§
source§impl Clone for BucketInfoBuilder
impl Clone for BucketInfoBuilder
source§fn clone(&self) -> BucketInfoBuilder
fn clone(&self) -> BucketInfoBuilder
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 BucketInfoBuilder
impl Debug for BucketInfoBuilder
source§impl Default for BucketInfoBuilder
impl Default for BucketInfoBuilder
source§fn default() -> BucketInfoBuilder
fn default() -> BucketInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BucketInfoBuilder
impl PartialEq for BucketInfoBuilder
source§fn eq(&self, other: &BucketInfoBuilder) -> bool
fn eq(&self, other: &BucketInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketInfoBuilder
Auto Trait Implementations§
impl Freeze for BucketInfoBuilder
impl RefUnwindSafe for BucketInfoBuilder
impl Send for BucketInfoBuilder
impl Sync for BucketInfoBuilder
impl Unpin for BucketInfoBuilder
impl UnwindSafe for BucketInfoBuilder
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.