pub struct AggregateBuilder<N, K, L, W, WV, A, S: State = Empty>{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<N, K, L, W, WV, A, S: State> AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S: State> AggregateBuilder<N, K, L, W, WV, A, S>
Sourcepub fn build(self) -> Aggregate<N, K, L, W, WV, A>where
S: IsComplete,
pub fn build(self) -> Aggregate<N, K, L, W, WV, A>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn items(
self,
value: usize,
) -> AggregateBuilder<N, K, L, W, WV, A, SetItems<S>>where
S::Items: IsUnset,
pub fn items(
self,
value: usize,
) -> AggregateBuilder<N, K, L, W, WV, A, SetItems<S>>where
S::Items: IsUnset,
Sourcepub fn maybe_items(
self,
value: Option<usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetItems<S>>where
S::Items: IsUnset,
pub fn maybe_items(
self,
value: Option<usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetItems<S>>where
S::Items: IsUnset,
Sourcepub fn names(
self,
value: BTreeMap<N, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetNames<S>>where
S::Names: IsUnset,
pub fn names(
self,
value: BTreeMap<N, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetNames<S>>where
S::Names: IsUnset,
Sourcepub fn maybe_names(
self,
value: Option<BTreeMap<N, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetNames<S>>where
S::Names: IsUnset,
pub fn maybe_names(
self,
value: Option<BTreeMap<N, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetNames<S>>where
S::Names: IsUnset,
Sourcepub fn kinds(
self,
value: BTreeMap<K, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetKinds<S>>where
S::Kinds: IsUnset,
pub fn kinds(
self,
value: BTreeMap<K, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetKinds<S>>where
S::Kinds: IsUnset,
Sourcepub fn maybe_kinds(
self,
value: Option<BTreeMap<K, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetKinds<S>>where
S::Kinds: IsUnset,
pub fn maybe_kinds(
self,
value: Option<BTreeMap<K, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetKinds<S>>where
S::Kinds: IsUnset,
Sourcepub fn labels(
self,
value: BTreeMap<L, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetLabels<S>>where
S::Labels: IsUnset,
pub fn labels(
self,
value: BTreeMap<L, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetLabels<S>>where
S::Labels: IsUnset,
Sourcepub fn maybe_labels(
self,
value: Option<BTreeMap<L, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetLabels<S>>where
S::Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<BTreeMap<L, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetLabels<S>>where
S::Labels: IsUnset,
Sourcepub fn weights(
self,
value: BTreeMap<W, WV>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetWeights<S>>where
S::Weights: IsUnset,
pub fn weights(
self,
value: BTreeMap<W, WV>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetWeights<S>>where
S::Weights: IsUnset,
Sourcepub fn maybe_weights(
self,
value: Option<BTreeMap<W, WV>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetWeights<S>>where
S::Weights: IsUnset,
pub fn maybe_weights(
self,
value: Option<BTreeMap<W, WV>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetWeights<S>>where
S::Weights: IsUnset,
Sourcepub fn annotations(
self,
value: BTreeMap<A, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetAnnotations<S>>where
S::Annotations: IsUnset,
pub fn annotations(
self,
value: BTreeMap<A, usize>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetAnnotations<S>>where
S::Annotations: IsUnset,
Sourcepub fn maybe_annotations(
self,
value: Option<BTreeMap<A, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetAnnotations<S>>where
S::Annotations: IsUnset,
pub fn maybe_annotations(
self,
value: Option<BTreeMap<A, usize>>,
) -> AggregateBuilder<N, K, L, W, WV, A, SetAnnotations<S>>where
S::Annotations: IsUnset,
Auto Trait Implementations§
impl<N, K, L, W, WV, A, S> Freeze for AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S> RefUnwindSafe for AggregateBuilder<N, K, L, W, WV, A, S>where
N: RefUnwindSafe,
K: RefUnwindSafe,
L: RefUnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
impl<N, K, L, W, WV, A, S> Send for AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S> Sync for AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S> Unpin for AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S> UnsafeUnpin for AggregateBuilder<N, K, L, W, WV, A, S>
impl<N, K, L, W, WV, A, S> UnwindSafe for AggregateBuilder<N, K, L, W, WV, A, S>where
N: RefUnwindSafe,
K: RefUnwindSafe,
L: RefUnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
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