pub enum ModelQueryV2 {
Rows {
cardinality: QueryRowCardinalityV2,
hydration: HydrationProjectionV2,
order: Option<QueryStableOrderV2>,
output: QueryModelOutputV2,
window: QueryWindowV2,
},
Page {
hydration: HydrationProjectionV2,
include_total: bool,
order: QueryStableOrderV2,
output: QueryModelOutputV2,
root: BindingId,
window: QueryWindowV2,
},
DistinctCount {
hydration: HydrationProjectionV2,
root: BindingId,
},
DistinctExists {
hydration: HydrationProjectionV2,
root: BindingId,
},
Reduction {
hydration: HydrationProjectionV2,
root: BindingId,
group: Option<QueryReductionGroupV2>,
reducers: Vec<QueryReductionTermV2>,
},
}Expand description
The released model-query terminal contract carried by a V2 plan.
Variants§
Rows
Return hydrated selected rows.
Fields
§
cardinality: QueryRowCardinalityV2Required selected-row cardinality.
§
hydration: HydrationProjectionV2Complete hydration authority.
§
order: Option<QueryStableOrderV2>Stable order; absent only for exactly-one.
§
output: QueryModelOutputV2Public output shape.
§
window: QueryWindowV2Exact row window.
Page
Page by distinct root identity and hydrate in the same snapshot.
Fields
§
hydration: HydrationProjectionV2Complete hydration authority.
§
order: QueryStableOrderV2Stable distinct-root order.
§
output: QueryModelOutputV2Public output shape.
§
window: QueryWindowV2Exact root window.
DistinctCount
Count distinct root identities losslessly.
Fields
§
hydration: HydrationProjectionV2Complete plan-side descriptor and predicate authority.
DistinctExists
Test distinct-root existence.
Fields
§
hydration: HydrationProjectionV2Complete plan-side descriptor and predicate authority.
Reduction
Reduce the distinct-root stream with optional typed grouping.
Fields
§
hydration: HydrationProjectionV2Complete plan-side descriptor and hydration authority.
§
group: Option<QueryReductionGroupV2>Optional exact grouping contract.
§
reducers: Vec<QueryReductionTermV2>Ordered typed reducer terms.
Trait Implementations§
Source§impl Clone for ModelQueryV2
impl Clone for ModelQueryV2
Source§fn clone(&self) -> ModelQueryV2
fn clone(&self) -> ModelQueryV2
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 ModelQueryV2
impl Debug for ModelQueryV2
Source§impl<'de> Deserialize<'de> for ModelQueryV2
impl<'de> Deserialize<'de> for ModelQueryV2
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 ModelQueryV2
Source§impl PartialEq for ModelQueryV2
impl PartialEq for ModelQueryV2
Source§impl Serialize for ModelQueryV2
impl Serialize for ModelQueryV2
impl StructuralPartialEq for ModelQueryV2
Auto Trait Implementations§
impl Freeze for ModelQueryV2
impl RefUnwindSafe for ModelQueryV2
impl Send for ModelQueryV2
impl Sync for ModelQueryV2
impl Unpin for ModelQueryV2
impl UnsafeUnpin for ModelQueryV2
impl UnwindSafe for ModelQueryV2
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