pub struct SimilaritySessionCompletionQuery { /* private fields */ }Expand description
Chooses which similarity session completion data to read or update.
A query cannot select both a provider and a resolver. An empty query selects the whole session.
Implementations§
Source§impl SimilaritySessionCompletionQuery
impl SimilaritySessionCompletionQuery
Sourcepub fn for_session() -> Self
pub fn for_session() -> Self
Selects the whole session.
Sourcepub fn for_node(node_id: SimilaritySessionNodeId) -> Self
pub fn for_node(node_id: SimilaritySessionNodeId) -> Self
Selects a node.
Sourcepub fn for_provider(provider_id: SimilarityProviderId) -> Self
pub fn for_provider(provider_id: SimilarityProviderId) -> Self
Selects a provider across the session.
Sourcepub fn for_resolver(resolver_id: SimilaritySessionResolverId) -> Self
pub fn for_resolver(resolver_id: SimilaritySessionResolverId) -> Self
Selects a resolver across the session.
Sourcepub fn with_provider(self, provider_id: SimilarityProviderId) -> Self
pub fn with_provider(self, provider_id: SimilarityProviderId) -> Self
Selects a provider within the current selection.
Sourcepub fn with_resolver(self, resolver_id: SimilaritySessionResolverId) -> Self
pub fn with_resolver(self, resolver_id: SimilaritySessionResolverId) -> Self
Selects a resolver within the current selection.
Sourcepub fn node_id(&self) -> Option<SimilaritySessionNodeId>
pub fn node_id(&self) -> Option<SimilaritySessionNodeId>
Returns the selected node, if any.
Sourcepub fn provider_id(&self) -> Option<SimilarityProviderId>
pub fn provider_id(&self) -> Option<SimilarityProviderId>
Returns the selected provider, if any.
Sourcepub fn resolver_id(&self) -> Option<SimilaritySessionResolverId>
pub fn resolver_id(&self) -> Option<SimilaritySessionResolverId>
Returns the selected resolver, if any.
Trait Implementations§
Source§impl Clone for SimilaritySessionCompletionQuery
impl Clone for SimilaritySessionCompletionQuery
Source§fn clone(&self) -> SimilaritySessionCompletionQuery
fn clone(&self) -> SimilaritySessionCompletionQuery
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 Default for SimilaritySessionCompletionQuery
impl Default for SimilaritySessionCompletionQuery
Source§fn default() -> SimilaritySessionCompletionQuery
fn default() -> SimilaritySessionCompletionQuery
Returns the “default value” for a type. Read more
Source§impl From<SimilaritySessionCompletionQuery> for BNSimilaritySessionCompletionQuery
impl From<SimilaritySessionCompletionQuery> for BNSimilaritySessionCompletionQuery
Source§fn from(value: SimilaritySessionCompletionQuery) -> Self
fn from(value: SimilaritySessionCompletionQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimilaritySessionCompletionQuery
impl PartialEq for SimilaritySessionCompletionQuery
Source§fn eq(&self, other: &SimilaritySessionCompletionQuery) -> bool
fn eq(&self, other: &SimilaritySessionCompletionQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimilaritySessionCompletionQuery
impl Eq for SimilaritySessionCompletionQuery
impl StructuralPartialEq for SimilaritySessionCompletionQuery
Auto Trait Implementations§
impl Freeze for SimilaritySessionCompletionQuery
impl RefUnwindSafe for SimilaritySessionCompletionQuery
impl Send for SimilaritySessionCompletionQuery
impl Sync for SimilaritySessionCompletionQuery
impl Unpin for SimilaritySessionCompletionQuery
impl UnsafeUnpin for SimilaritySessionCompletionQuery
impl UnwindSafe for SimilaritySessionCompletionQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more