pub struct ContextCheckpointLearningStateV1 {
pub state_ref: ProtocolReference,
pub state_digest: Sha256Digest,
pub revision: u64,
}Expand description
Portable reference to a separately stored learning-state projection.
Fields§
§state_ref: ProtocolReferenceNon-path reference to the exported learning state.
state_digest: Sha256DigestContent identity of the exported learning state.
revision: u64Monotonic learning-state revision.
Implementations§
Source§impl ContextCheckpointLearningStateV1
impl ContextCheckpointLearningStateV1
Sourcepub fn try_new(
state_ref: ProtocolReference,
state_digest: Sha256Digest,
revision: u64,
) -> Result<Self, ValidationError>
pub fn try_new( state_ref: ProtocolReference, state_digest: Sha256Digest, revision: u64, ) -> Result<Self, ValidationError>
Construct a reference-only learning-state pin.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate the learning-state reference and revision.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextCheckpointLearningStateV1
impl<'de> Deserialize<'de> for ContextCheckpointLearningStateV1
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextCheckpointLearningStateV1
impl StructuralPartialEq for ContextCheckpointLearningStateV1
Auto Trait Implementations§
impl Forget for ContextCheckpointLearningStateV1
impl Freeze for ContextCheckpointLearningStateV1
impl Move for ContextCheckpointLearningStateV1
impl RefUnwindSafe for ContextCheckpointLearningStateV1
impl Send for ContextCheckpointLearningStateV1
impl Sync for ContextCheckpointLearningStateV1
impl Unpin for ContextCheckpointLearningStateV1
impl UnsafeUnpin for ContextCheckpointLearningStateV1
impl UnwindSafe for ContextCheckpointLearningStateV1
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