pub struct QueryPlanV2Compatibility { /* private fields */ }Expand description
The additive V2-only compatibility portion of one query plan.
Implementations§
Source§impl QueryPlanV2Compatibility
impl QueryPlanV2Compatibility
Sourcepub const fn native() -> Self
pub const fn native() -> Self
Construct the empty compatibility portion used by native low-level V2 plans.
Sourcepub const fn new(
predicate: Option<QueryPatternV2>,
allowed_cross_joins: Vec<QueryBindingPairV2>,
model_query: Option<ModelQueryV2>,
) -> Self
pub const fn new( predicate: Option<QueryPatternV2>, allowed_cross_joins: Vec<QueryBindingPairV2>, model_query: Option<ModelQueryV2>, ) -> Self
Construct an adapter-authored compatibility contract.
Sourcepub const fn predicate(&self) -> Option<&QueryPatternV2>
pub const fn predicate(&self) -> Option<&QueryPatternV2>
Return the closed released boolean predicate, if present.
Sourcepub fn allowed_cross_joins(&self) -> &[QueryBindingPairV2]
pub fn allowed_cross_joins(&self) -> &[QueryBindingPairV2]
Return canonical explicit cross-join permissions.
Sourcepub const fn model_query(&self) -> Option<&ModelQueryV2>
pub const fn model_query(&self) -> Option<&ModelQueryV2>
Return the released model-query terminal contract, if present.
Trait Implementations§
Source§impl Clone for QueryPlanV2Compatibility
impl Clone for QueryPlanV2Compatibility
Source§fn clone(&self) -> QueryPlanV2Compatibility
fn clone(&self) -> QueryPlanV2Compatibility
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 QueryPlanV2Compatibility
impl Debug for QueryPlanV2Compatibility
Source§impl<'de> Deserialize<'de> for QueryPlanV2Compatibility
impl<'de> Deserialize<'de> for QueryPlanV2Compatibility
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 QueryPlanV2Compatibility
Source§impl PartialEq for QueryPlanV2Compatibility
impl PartialEq for QueryPlanV2Compatibility
Source§impl Serialize for QueryPlanV2Compatibility
impl Serialize for QueryPlanV2Compatibility
impl StructuralPartialEq for QueryPlanV2Compatibility
Auto Trait Implementations§
impl Freeze for QueryPlanV2Compatibility
impl RefUnwindSafe for QueryPlanV2Compatibility
impl Send for QueryPlanV2Compatibility
impl Sync for QueryPlanV2Compatibility
impl Unpin for QueryPlanV2Compatibility
impl UnsafeUnpin for QueryPlanV2Compatibility
impl UnwindSafe for QueryPlanV2Compatibility
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