pub struct AvailableModelDescriptor {
pub key: ModelKey,
pub display_name: String,
pub capabilities: ModelCapabilities,
pub variants: Vec<AvailableVariantDescriptor>,
pub variant_order: Vec<VariantId>,
pub default_variant: Option<VariantId>,
pub behavior_fingerprint: Sha256Digest,
}Fields§
§key: ModelKey§display_name: String§capabilities: ModelCapabilities§variants: Vec<AvailableVariantDescriptor>§variant_order: Vec<VariantId>§default_variant: Option<VariantId>§behavior_fingerprint: Sha256DigestImplementations§
Source§impl AvailableModelDescriptor
impl AvailableModelDescriptor
pub fn validate(&self) -> Result<(), ModelSchemaError>
Trait Implementations§
Source§impl Clone for AvailableModelDescriptor
impl Clone for AvailableModelDescriptor
Source§fn clone(&self) -> AvailableModelDescriptor
fn clone(&self) -> AvailableModelDescriptor
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 AvailableModelDescriptor
impl Debug for AvailableModelDescriptor
Source§impl<'de> Deserialize<'de> for AvailableModelDescriptor
impl<'de> Deserialize<'de> for AvailableModelDescriptor
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AvailableModelDescriptor
Source§impl JsonSchema for AvailableModelDescriptor
impl JsonSchema for AvailableModelDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AvailableModelDescriptor
impl PartialEq for AvailableModelDescriptor
Source§fn eq(&self, other: &AvailableModelDescriptor) -> bool
fn eq(&self, other: &AvailableModelDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AvailableModelDescriptor
impl Serialize for AvailableModelDescriptor
impl StructuralPartialEq for AvailableModelDescriptor
Auto Trait Implementations§
impl Freeze for AvailableModelDescriptor
impl RefUnwindSafe for AvailableModelDescriptor
impl Send for AvailableModelDescriptor
impl Sync for AvailableModelDescriptor
impl Unpin for AvailableModelDescriptor
impl UnsafeUnpin for AvailableModelDescriptor
impl UnwindSafe for AvailableModelDescriptor
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