pub enum Capability {
Show 19 variants
Text,
Streaming,
Vision,
Audio,
Video,
Tools,
ParallelTools,
Agentic,
Reasoning,
Embeddings,
StructuredOutput,
Batch,
ImageGeneration,
ComputerUse,
McpClient,
McpServer,
Stt,
Tts,
Rerank,
}Expand description
Standard capability identifiers aligned with schemas/v2/capabilities.json.
Variants§
Text
Streaming
Vision
Audio
Video
Tools
ParallelTools
Agentic
Reasoning
Embeddings
StructuredOutput
Batch
ImageGeneration
ComputerUse
McpClient
McpServer
Stt
Tts
Rerank
Implementations§
Source§impl Capability
impl Capability
Sourcepub fn feature_flag(&self) -> Option<&'static str>
pub fn feature_flag(&self) -> Option<&'static str>
Map capability to the corresponding Cargo feature flag name.
Sourcepub fn is_feature_gated(&self) -> bool
pub fn is_feature_gated(&self) -> bool
Check whether this capability requires a feature flag to be compiled in.
Sourcepub fn module_path(&self) -> &'static str
pub fn module_path(&self) -> &'static str
Get the runtime module path this capability maps to.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Debug for Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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
Source§impl Hash for Capability
impl Hash for Capability
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§impl Serialize for Capability
impl Serialize for Capability
impl Copy for Capability
impl Eq for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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,
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.