pub struct QueryReductionTermV2 { /* private fields */ }Expand description
One ordered typed reducer term.
Implementations§
Source§impl QueryReductionTermV2
impl QueryReductionTermV2
Sourcepub const fn new(
reduction: QueryReductionKindV2,
input: Option<QueryFieldV2>,
) -> Self
pub const fn new( reduction: QueryReductionKindV2, input: Option<QueryFieldV2>, ) -> Self
Construct one typed reducer term.
Sourcepub const fn reduction(&self) -> QueryReductionKindV2
pub const fn reduction(&self) -> QueryReductionKindV2
Return the reducer operation.
Sourcepub const fn input(&self) -> Option<&QueryFieldV2>
pub const fn input(&self) -> Option<&QueryFieldV2>
Return the optional numeric input field.
Trait Implementations§
Source§impl Clone for QueryReductionTermV2
impl Clone for QueryReductionTermV2
Source§fn clone(&self) -> QueryReductionTermV2
fn clone(&self) -> QueryReductionTermV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryReductionTermV2
impl Debug for QueryReductionTermV2
Source§impl<'de> Deserialize<'de> for QueryReductionTermV2
impl<'de> Deserialize<'de> for QueryReductionTermV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueryReductionTermV2
Source§impl PartialEq for QueryReductionTermV2
impl PartialEq for QueryReductionTermV2
Source§impl Serialize for QueryReductionTermV2
impl Serialize for QueryReductionTermV2
impl StructuralPartialEq for QueryReductionTermV2
Auto Trait Implementations§
impl Freeze for QueryReductionTermV2
impl RefUnwindSafe for QueryReductionTermV2
impl Send for QueryReductionTermV2
impl Sync for QueryReductionTermV2
impl Unpin for QueryReductionTermV2
impl UnsafeUnpin for QueryReductionTermV2
impl UnwindSafe for QueryReductionTermV2
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