pub struct ModelDescriptor {
pub algorithm: AlgorithmDescriptor,
pub feature_schema_hash: FeatureSchemaHash,
pub configuration_digest: Option<[u8; 32]>,
}Expand description
Identity checked when activating persisted model state.
Fields§
§algorithm: AlgorithmDescriptorAlgorithm/state identity.
feature_schema_hash: FeatureSchemaHashExact ordered feature schema identity.
configuration_digest: Option<[u8; 32]>Optional caller-generated configuration digest.
Implementations§
Source§impl ModelDescriptor
impl ModelDescriptor
Sourcepub fn new(
algorithm: AlgorithmDescriptor,
feature_schema_hash: FeatureSchemaHash,
configuration_digest: Option<[u8; 32]>,
) -> Result<Self, RillError>
pub fn new( algorithm: AlgorithmDescriptor, feature_schema_hash: FeatureSchemaHash, configuration_digest: Option<[u8; 32]>, ) -> Result<Self, RillError>
Construct and validate a descriptor.
Sourcepub fn ensure_schema(&self, schema: &FeatureSchema) -> Result<(), RillError>
pub fn ensure_schema(&self, schema: &FeatureSchema) -> Result<(), RillError>
Reject state activated under a different feature schema.
Trait Implementations§
Source§impl Clone for ModelDescriptor
impl Clone for ModelDescriptor
Source§fn clone(&self) -> ModelDescriptor
fn clone(&self) -> ModelDescriptor
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 ModelDescriptor
impl Debug for ModelDescriptor
impl Eq for ModelDescriptor
Source§impl PartialEq for ModelDescriptor
impl PartialEq for ModelDescriptor
impl StructuralPartialEq for ModelDescriptor
Auto Trait Implementations§
impl Freeze for ModelDescriptor
impl RefUnwindSafe for ModelDescriptor
impl Send for ModelDescriptor
impl Sync for ModelDescriptor
impl Unpin for ModelDescriptor
impl UnsafeUnpin for ModelDescriptor
impl UnwindSafe for ModelDescriptor
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