pub enum CapabilityState {
Supported,
Unsupported,
Unknown,
}Expand description
Whether a resolved provider/model offering supports one capability.
Variants§
Supported
The selected offering explicitly reports support.
Unsupported
The selected offering explicitly reports no support.
Unknown
The selected offering did not state the fact.
Implementations§
Source§impl CapabilityState
impl CapabilityState
Sourcepub const fn from_optional_bool(value: Option<bool>) -> Self
pub const fn from_optional_bool(value: Option<bool>) -> Self
Preserve a sourced optional boolean as a three-state fact.
Sourcepub const fn is_supported(self) -> bool
pub const fn is_supported(self) -> bool
Whether the source explicitly reports support.
Trait Implementations§
Source§impl Clone for CapabilityState
impl Clone for CapabilityState
Source§fn clone(&self) -> CapabilityState
fn clone(&self) -> CapabilityState
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 moreimpl Copy for CapabilityState
Source§impl Debug for CapabilityState
impl Debug for CapabilityState
Source§impl Default for CapabilityState
impl Default for CapabilityState
Source§fn default() -> CapabilityState
fn default() -> CapabilityState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapabilityState
impl<'de> Deserialize<'de> for CapabilityState
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 CapabilityState
Source§impl PartialEq for CapabilityState
impl PartialEq for CapabilityState
Source§impl Serialize for CapabilityState
impl Serialize for CapabilityState
impl StructuralPartialEq for CapabilityState
Auto Trait Implementations§
impl Freeze for CapabilityState
impl RefUnwindSafe for CapabilityState
impl Send for CapabilityState
impl Sync for CapabilityState
impl Unpin for CapabilityState
impl UnsafeUnpin for CapabilityState
impl UnwindSafe for CapabilityState
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.