pub struct ModelCardMetadata {
pub license: Option<String>,
pub pipeline_tag: Option<String>,
pub tags: Vec<String>,
pub library_name: Option<String>,
pub languages: Vec<String>,
pub gated: GateStatus,
}Expand description
Metadata from a HuggingFace model card.
Extracted from the single-model API endpoint
(GET /api/models/{owner}/{model}). All fields are optional
because model cards may omit any of them.
Fields§
§license: Option<String>SPDX license identifier (e.g., "apache-2.0").
pipeline_tag: Option<String>Pipeline tag (e.g., "text-generation").
Tags associated with the model (e.g., ["pytorch", "safetensors"]).
library_name: Option<String>Library name (e.g., "transformers", "vllm").
languages: Vec<String>Languages the model supports (e.g., ["en", "fr"]).
gated: GateStatusAccess control status (open, auto-gated, or manually gated).
Trait Implementations§
Source§impl Clone for ModelCardMetadata
impl Clone for ModelCardMetadata
Source§fn clone(&self) -> ModelCardMetadata
fn clone(&self) -> ModelCardMetadata
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 moreAuto Trait Implementations§
impl Freeze for ModelCardMetadata
impl RefUnwindSafe for ModelCardMetadata
impl Send for ModelCardMetadata
impl Sync for ModelCardMetadata
impl Unpin for ModelCardMetadata
impl UnsafeUnpin for ModelCardMetadata
impl UnwindSafe for ModelCardMetadata
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