pub struct ResolvedModelRef {
pub selection: ModelSelection,
pub provider_id: ProviderId,
pub model_id: ProviderModelId,
pub adapter_id: AdaptorId,
pub selection_fingerprint: Sha256Digest,
}Fields§
§selection: ModelSelection§provider_id: ProviderId§model_id: ProviderModelId§adapter_id: AdaptorId§selection_fingerprint: Sha256DigestImplementations§
Source§impl ResolvedModelRef
impl ResolvedModelRef
pub fn validate(&self) -> Result<(), ModelSchemaError>
Trait Implementations§
Source§impl Clone for ResolvedModelRef
impl Clone for ResolvedModelRef
Source§fn clone(&self) -> ResolvedModelRef
fn clone(&self) -> ResolvedModelRef
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 ResolvedModelRef
impl Debug for ResolvedModelRef
Source§impl<'de> Deserialize<'de> for ResolvedModelRef
impl<'de> Deserialize<'de> for ResolvedModelRef
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 ResolvedModelRef
Source§impl JsonSchema for ResolvedModelRef
impl JsonSchema for ResolvedModelRef
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 ResolvedModelRef
impl PartialEq for ResolvedModelRef
Source§fn eq(&self, other: &ResolvedModelRef) -> bool
fn eq(&self, other: &ResolvedModelRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedModelRef
impl Serialize for ResolvedModelRef
impl StructuralPartialEq for ResolvedModelRef
Auto Trait Implementations§
impl Freeze for ResolvedModelRef
impl RefUnwindSafe for ResolvedModelRef
impl Send for ResolvedModelRef
impl Sync for ResolvedModelRef
impl Unpin for ResolvedModelRef
impl UnsafeUnpin for ResolvedModelRef
impl UnwindSafe for ResolvedModelRef
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