pub struct PromotionMutationBinding {Show 22 fields
pub schema_version: String,
pub promotion_id: String,
pub provider_id: String,
pub phase_id: String,
pub account_ref: String,
pub catalog_ref: String,
pub provider_model_id: String,
pub model_sha256: String,
pub catalog_version: String,
pub catalog_sha256: String,
pub policy_version: String,
pub policy_sha256: String,
pub conformance_sha256: String,
pub configuration_authority_id: String,
pub configuration_authority_sha256: String,
pub expected_state_generation: u64,
pub state_preimage_sha256: String,
pub state_postimage_sha256: String,
pub rollback_snapshot_sha256: String,
pub authorization_nonce: String,
pub authorized_at_epoch_seconds: u64,
pub rollback_not_after_epoch_seconds: u64,
}Expand description
Canonical authority input for one exact catalog-promotion mutation.
This type deliberately does not choose a signature/MAC algorithm or trust- anchor representation. Those remain an explicit product/Security decision. A future verifier must authenticate these exact canonical bytes before an apply path may consume the resulting private proof token.
Fields§
§schema_version: String§promotion_id: String§provider_id: String§phase_id: String§account_ref: String§catalog_ref: String§provider_model_id: String§model_sha256: String§catalog_version: String§catalog_sha256: String§policy_version: String§policy_sha256: String§conformance_sha256: String§expected_state_generation: u64§state_preimage_sha256: String§state_postimage_sha256: String§rollback_snapshot_sha256: String§rollback_not_after_epoch_seconds: u64Implementations§
Source§impl PromotionMutationBinding
impl PromotionMutationBinding
Sourcepub fn binding_sha256(&self) -> Result<String, PromotionAuthorityError>
pub fn binding_sha256(&self) -> Result<String, PromotionAuthorityError>
Hashes the strict, field-ordered Serde representation used as the future verifier input. Any generation, preimage, postimage, authority, catalog, model, policy, conformance, nonce, or rollback substitution changes it.
Trait Implementations§
Source§impl Clone for PromotionMutationBinding
impl Clone for PromotionMutationBinding
Source§impl Debug for PromotionMutationBinding
impl Debug for PromotionMutationBinding
Source§impl<'de> Deserialize<'de> for PromotionMutationBinding
impl<'de> Deserialize<'de> for PromotionMutationBinding
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 PromotionMutationBinding
Source§impl PartialEq for PromotionMutationBinding
impl PartialEq for PromotionMutationBinding
Source§impl Serialize for PromotionMutationBinding
impl Serialize for PromotionMutationBinding
impl StructuralPartialEq for PromotionMutationBinding
Auto Trait Implementations§
impl Freeze for PromotionMutationBinding
impl RefUnwindSafe for PromotionMutationBinding
impl Send for PromotionMutationBinding
impl Sync for PromotionMutationBinding
impl Unpin for PromotionMutationBinding
impl UnsafeUnpin for PromotionMutationBinding
impl UnwindSafe for PromotionMutationBinding
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