pub struct CapabilityQueryBuilder { /* private fields */ }Expand description
Builder for creating capability queries
Implementations§
Source§impl CapabilityQueryBuilder
impl CapabilityQueryBuilder
Sourcepub fn require_type(self, capability_type: CapabilityType) -> Self
pub fn require_type(self, capability_type: CapabilityType) -> Self
Add a required capability type
Sourcepub fn prefer_type(self, capability_type: CapabilityType) -> Self
pub fn prefer_type(self, capability_type: CapabilityType) -> Self
Add an optional capability type
Sourcepub fn min_confidence(self, min_confidence: f32) -> Self
pub fn min_confidence(self, min_confidence: f32) -> Self
Set minimum confidence threshold
Sourcepub fn min_capability_count(self, count: usize) -> Self
pub fn min_capability_count(self, count: usize) -> Self
Set minimum capability count
Sourcepub fn build(self) -> CapabilityQuery
pub fn build(self) -> CapabilityQuery
Build the query
Trait Implementations§
Source§impl Debug for CapabilityQueryBuilder
impl Debug for CapabilityQueryBuilder
Source§impl Default for CapabilityQueryBuilder
impl Default for CapabilityQueryBuilder
Source§fn default() -> CapabilityQueryBuilder
fn default() -> CapabilityQueryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CapabilityQueryBuilder
impl RefUnwindSafe for CapabilityQueryBuilder
impl Send for CapabilityQueryBuilder
impl Sync for CapabilityQueryBuilder
impl Unpin for CapabilityQueryBuilder
impl UnsafeUnpin for CapabilityQueryBuilder
impl UnwindSafe for CapabilityQueryBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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