#[non_exhaustive]pub struct ModelDescriptor {
pub id: String,
pub display_name: Option<String>,
pub capabilities: Option<ModelCapabilities>,
}Expand description
A descriptor for a model that can be enumerated without downloading it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringIdentifier as the source would accept it back
(e.g. Qwen/Qwen3-ASR-0.6B).
display_name: Option<String>Human-readable name, if the source provides one.
capabilities: Option<ModelCapabilities>Reported capabilities, if the source can determine them without downloading the weights.
Implementations§
Source§impl ModelDescriptor
impl ModelDescriptor
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
Build a descriptor with just an id (no display name, no capabilities).
Sourcepub fn with_details(
id: impl Into<String>,
display_name: Option<String>,
capabilities: Option<ModelCapabilities>,
) -> Self
pub fn with_details( id: impl Into<String>, display_name: Option<String>, capabilities: Option<ModelCapabilities>, ) -> Self
Build a descriptor with id, display name, and capabilities.
Trait Implementations§
Source§impl Clone for ModelDescriptor
impl Clone for ModelDescriptor
Source§fn clone(&self) -> ModelDescriptor
fn clone(&self) -> ModelDescriptor
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 moreSource§impl Debug for ModelDescriptor
impl Debug for ModelDescriptor
impl Eq for ModelDescriptor
Source§impl PartialEq for ModelDescriptor
impl PartialEq for ModelDescriptor
impl StructuralPartialEq for ModelDescriptor
Auto Trait Implementations§
impl Freeze for ModelDescriptor
impl RefUnwindSafe for ModelDescriptor
impl Send for ModelDescriptor
impl Sync for ModelDescriptor
impl Unpin for ModelDescriptor
impl UnsafeUnpin for ModelDescriptor
impl UnwindSafe for ModelDescriptor
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