pub struct CompleteRelationshipSelection { /* private fields */ }Expand description
Complete exact candidate selection bound to the request that produced it.
Implementations§
Source§impl CompleteRelationshipSelection
impl CompleteRelationshipSelection
Sourcepub fn try_new(
request: RelationshipSelectionRequest,
candidates: Vec<ObjectId>,
evidence: Vec<Evidence>,
) -> Result<Self, RelationshipSelectionError>
pub fn try_new( request: RelationshipSelectionRequest, candidates: Vec<ObjectId>, evidence: Vec<Evidence>, ) -> Result<Self, RelationshipSelectionError>
Creates a request-bound complete selection with canonical candidate ordering.
Sourcepub fn request(&self) -> &RelationshipSelectionRequest
pub fn request(&self) -> &RelationshipSelectionRequest
Complete request, including anchor, universe, and query.
Sourcepub fn candidates(&self) -> &[ObjectId]
pub fn candidates(&self) -> &[ObjectId]
Canonically ordered selected candidates.
Trait Implementations§
Source§impl Clone for CompleteRelationshipSelection
impl Clone for CompleteRelationshipSelection
Source§fn clone(&self) -> CompleteRelationshipSelection
fn clone(&self) -> CompleteRelationshipSelection
Returns a copy 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 PartialEq for CompleteRelationshipSelection
impl PartialEq for CompleteRelationshipSelection
Source§fn eq(&self, other: &CompleteRelationshipSelection) -> bool
fn eq(&self, other: &CompleteRelationshipSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompleteRelationshipSelection
Auto Trait Implementations§
impl Freeze for CompleteRelationshipSelection
impl RefUnwindSafe for CompleteRelationshipSelection
impl Send for CompleteRelationshipSelection
impl Sync for CompleteRelationshipSelection
impl Unpin for CompleteRelationshipSelection
impl UnwindSafe for CompleteRelationshipSelection
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