pub struct FrozenModelBinding {Show 18 fields
pub manifest_revision: ModelSnapshotRevision,
pub blueprint_fingerprint: Sha256Digest,
pub selection: ModelSelection,
pub source: FrozenProviderSource,
pub config_override_fingerprint: Sha256Digest,
pub credential_binding: FrozenCredentialBinding,
pub setup_binding: FrozenSetupBinding,
pub endpoint_identity: SafeEndpointIdentity,
pub provider_recipe: ProviderRecipeId,
pub protocol_recipe: ProtocolRecipeId,
pub setup_recipe: ProviderSetupRecipeId,
pub compiler_version: RecipeCompilerVersion,
pub descriptor: LanguageModelDescriptor,
pub defaults: FrozenResolvedRequestDefaults,
pub options: ProviderOptions,
pub static_headers: BTreeMap<HeaderName, SafeStaticHeaderValue>,
pub behavior_fingerprint: Sha256Digest,
pub selection_fingerprint: Sha256Digest,
}Fields§
§manifest_revision: ModelSnapshotRevision§blueprint_fingerprint: Sha256Digest§selection: ModelSelection§source: FrozenProviderSource§config_override_fingerprint: Sha256Digest§credential_binding: FrozenCredentialBinding§setup_binding: FrozenSetupBinding§endpoint_identity: SafeEndpointIdentity§provider_recipe: ProviderRecipeId§protocol_recipe: ProtocolRecipeId§setup_recipe: ProviderSetupRecipeId§compiler_version: RecipeCompilerVersion§descriptor: LanguageModelDescriptor§defaults: FrozenResolvedRequestDefaults§options: ProviderOptions§static_headers: BTreeMap<HeaderName, SafeStaticHeaderValue>§behavior_fingerprint: Sha256Digest§selection_fingerprint: Sha256DigestImplementations§
Source§impl FrozenModelBinding
impl FrozenModelBinding
pub fn validate(&self) -> Result<(), ModelSchemaError>
pub fn matches_blueprint(&self, blueprint: &CompiledSafeModelBlueprint) -> bool
Trait Implementations§
Source§impl Clone for FrozenModelBinding
impl Clone for FrozenModelBinding
Source§fn clone(&self) -> FrozenModelBinding
fn clone(&self) -> FrozenModelBinding
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 FrozenModelBinding
impl Debug for FrozenModelBinding
Source§impl<'de> Deserialize<'de> for FrozenModelBinding
impl<'de> Deserialize<'de> for FrozenModelBinding
Source§fn deserialize<D>(
d: D,
) -> Result<FrozenModelBinding, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
d: D,
) -> Result<FrozenModelBinding, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for FrozenModelBinding
impl JsonSchema for FrozenModelBinding
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 FrozenModelBinding
impl PartialEq for FrozenModelBinding
Source§fn eq(&self, other: &FrozenModelBinding) -> bool
fn eq(&self, other: &FrozenModelBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FrozenModelBinding
impl Serialize for FrozenModelBinding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FrozenModelBinding
Auto Trait Implementations§
impl Freeze for FrozenModelBinding
impl RefUnwindSafe for FrozenModelBinding
impl Send for FrozenModelBinding
impl Sync for FrozenModelBinding
impl Unpin for FrozenModelBinding
impl UnsafeUnpin for FrozenModelBinding
impl UnwindSafe for FrozenModelBinding
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