pub struct ContextCheckpointCarrierBindingV1 {
pub carrier_schema_id: String,
pub logical_state_schema_id: String,
pub workspace_id: WorkspaceId,
pub state_digest: Sha256Digest,
pub envelope_digest: Sha256Digest,
}Expand description
Binding to an existing P6 .ctxpkg checkpoint carrier envelope.
The binding carries only the carrier’s schema identities and content digests. It lets a canonical checkpoint travel inside the already deployed v2 carrier without this crate re-implementing the carrier projection, which belongs to a downstream slice.
Fields§
§carrier_schema_id: StringSchema identity of the carrier envelope.
logical_state_schema_id: StringSchema identity of the carrier logical_state object.
workspace_id: WorkspaceIdWorkspace identity asserted by the carrier envelope.
state_digest: Sha256DigestCarrier state_digest over the logical_state object.
envelope_digest: Sha256DigestCarrier envelope_digest over the unsigned envelope.
Implementations§
Source§impl ContextCheckpointCarrierBindingV1
impl ContextCheckpointCarrierBindingV1
Sourcepub fn try_new(
workspace_id: WorkspaceId,
state_digest: Sha256Digest,
envelope_digest: Sha256Digest,
) -> Result<Self, ValidationError>
pub fn try_new( workspace_id: WorkspaceId, state_digest: Sha256Digest, envelope_digest: Sha256Digest, ) -> Result<Self, ValidationError>
Construct a validated binding using the deployed P6 v2 identities.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate the carrier schema identities.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextCheckpointCarrierBindingV1
impl<'de> Deserialize<'de> for ContextCheckpointCarrierBindingV1
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 ContextCheckpointCarrierBindingV1
impl StructuralPartialEq for ContextCheckpointCarrierBindingV1
Auto Trait Implementations§
impl Freeze for ContextCheckpointCarrierBindingV1
impl RefUnwindSafe for ContextCheckpointCarrierBindingV1
impl Send for ContextCheckpointCarrierBindingV1
impl Sync for ContextCheckpointCarrierBindingV1
impl Unpin for ContextCheckpointCarrierBindingV1
impl UnsafeUnpin for ContextCheckpointCarrierBindingV1
impl UnwindSafe for ContextCheckpointCarrierBindingV1
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