pub struct RelationshipSelectionRequest { /* private fields */ }Expand description
Request for relationship-selected objects within a caller-bound universe.
Implementations§
Source§impl RelationshipSelectionRequest
impl RelationshipSelectionRequest
Sourcepub fn try_new(
anchor: ObjectId,
candidate_universe: Vec<ObjectId>,
query: RelationshipQuery,
) -> Result<Self, RelationshipSelectionError>
pub fn try_new( anchor: ObjectId, candidate_universe: Vec<ObjectId>, query: RelationshipQuery, ) -> Result<Self, RelationshipSelectionError>
Creates a request with a canonical, duplicate-free candidate universe.
Sourcepub fn with_absent_ends(self, policy: AbsentEndPolicy) -> Self
pub fn with_absent_ends(self, policy: AbsentEndPolicy) -> Self
Sets how instances with an absent required end are treated.
Sourcepub fn absent_ends(&self) -> AbsentEndPolicy
pub fn absent_ends(&self) -> AbsentEndPolicy
How instances with an absent required end are treated.
Sourcepub fn candidate_universe(&self) -> &[ObjectId]
pub fn candidate_universe(&self) -> &[ObjectId]
Complete caller-approved universe from which candidates may be returned.
Sourcepub fn query(&self) -> &RelationshipQuery
pub fn query(&self) -> &RelationshipQuery
Requested relationship operation.
Trait Implementations§
Source§impl Clone for RelationshipSelectionRequest
impl Clone for RelationshipSelectionRequest
Source§impl Debug for RelationshipSelectionRequest
impl Debug for RelationshipSelectionRequest
impl Eq for RelationshipSelectionRequest
Source§impl Ord for RelationshipSelectionRequest
impl Ord for RelationshipSelectionRequest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RelationshipSelectionRequest
impl PartialOrd for RelationshipSelectionRequest
impl StructuralPartialEq for RelationshipSelectionRequest
Auto Trait Implementations§
impl Freeze for RelationshipSelectionRequest
impl RefUnwindSafe for RelationshipSelectionRequest
impl Send for RelationshipSelectionRequest
impl Sync for RelationshipSelectionRequest
impl Unpin for RelationshipSelectionRequest
impl UnsafeUnpin for RelationshipSelectionRequest
impl UnwindSafe for RelationshipSelectionRequest
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