pub enum ViewTransform {
Filter {
predicate: Predicate,
},
Sort {
key: FieldPath,
order: SortOrder,
},
Take {
count: usize,
},
Skip {
count: usize,
},
First,
Last,
MaxBy {
key: FieldPath,
},
MinBy {
key: FieldPath,
},
}Expand description
Transform operation in a view pipeline
Variants§
Filter
Filter entities matching a predicate
Sort
Sort entities by a field
Take
Take first N entities (after sort)
Skip
Skip first N entities
First
Take only the first entity (after sort) - produces Single output
Last
Take only the last entity (after sort) - produces Single output
MaxBy
Get entity with maximum value for field - produces Single output
MinBy
Get entity with minimum value for field - produces Single output
Trait Implementations§
Source§impl Clone for ViewTransform
impl Clone for ViewTransform
Source§fn clone(&self) -> ViewTransform
fn clone(&self) -> ViewTransform
Returns a duplicate 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 ViewTransform
impl Debug for ViewTransform
Source§impl<'de> Deserialize<'de> for ViewTransform
impl<'de> Deserialize<'de> for ViewTransform
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
Source§impl PartialEq for ViewTransform
impl PartialEq for ViewTransform
Source§impl Serialize for ViewTransform
impl Serialize for ViewTransform
impl StructuralPartialEq for ViewTransform
Auto Trait Implementations§
impl Freeze for ViewTransform
impl RefUnwindSafe for ViewTransform
impl Send for ViewTransform
impl Sync for ViewTransform
impl Unpin for ViewTransform
impl UnwindSafe for ViewTransform
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