pub struct CompiledRuntimeModel {
pub key: ModelKey,
pub model: CompiledDynamicModel,
pub source: RuntimeProviderSource,
pub config_override_fingerprint: Sha256Digest,
pub setup_values: BTreeMap<SetupFieldId, SafeSetupValue>,
pub setup_fingerprint: Sha256Digest,
pub setup_recipe: ProviderSetupRecipeId,
pub credential_source: EffectiveCredentialSource,
pub static_headers: BTreeMap<HeaderName, SafeStaticHeaderValue>,
/* private fields */
}Expand description
One complete compiled model plus its exact safe source and credential bindings.
Fields§
§key: ModelKey§model: CompiledDynamicModel§source: RuntimeProviderSource§config_override_fingerprint: Sha256Digest§setup_values: BTreeMap<SetupFieldId, SafeSetupValue>§setup_fingerprint: Sha256Digest§setup_recipe: ProviderSetupRecipeId§credential_source: EffectiveCredentialSource§static_headers: BTreeMap<HeaderName, SafeStaticHeaderValue>Implementations§
Source§impl CompiledRuntimeModel
impl CompiledRuntimeModel
pub fn resolve( &self, selection: &ModelSelection, ) -> Result<ResolvedExecutableModel, ModelManagerError>
pub fn resolved_defaults( &self, variant: Option<&VariantId>, ) -> Option<&ResolvedRequestDefaults>
pub fn frozen_behavior( &self, variant: Option<&VariantId>, ) -> Result<(FrozenResolvedRequestDefaults, FrozenProviderOptions, Sha256Digest, Sha256Digest), ModelManagerError>
Trait Implementations§
Source§impl Clone for CompiledRuntimeModel
impl Clone for CompiledRuntimeModel
Source§fn clone(&self) -> CompiledRuntimeModel
fn clone(&self) -> CompiledRuntimeModel
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CompiledRuntimeModel
impl !UnwindSafe for CompiledRuntimeModel
impl Freeze for CompiledRuntimeModel
impl Send for CompiledRuntimeModel
impl Sync for CompiledRuntimeModel
impl Unpin for CompiledRuntimeModel
impl UnsafeUnpin for CompiledRuntimeModel
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