pub struct SchemaMigrationV1ToV2Payload {
pub previous_v1_head_hash: String,
pub migration_script_digest: String,
pub schema_version_target: u16,
pub operator_attestation: Option<Attestation>,
pub fixture_verification_result_hash: String,
}Expand description
Payload for the schema_migration.v1_to_v2 boundary event required by
ADR 0018.
Fields§
§previous_v1_head_hash: StringCryptographic tie to the pre-migration v1 chain tip.
migration_script_digest: StringDigest of the applied SQL and migration tooling bundle.
schema_version_target: u16Explicit target schema version. Must be 2 for this payload type.
operator_attestation: Option<Attestation>Operator attestation over the migration payload summary, when present.
fixture_verification_result_hash: StringDigest of the fixture verification transcript for this migration build.
Implementations§
Source§impl SchemaMigrationV1ToV2Payload
impl SchemaMigrationV1ToV2Payload
Sourcepub fn new(
previous_v1_head_hash: impl Into<String>,
migration_script_digest: impl Into<String>,
operator_attestation: Option<Attestation>,
fixture_verification_result_hash: impl Into<String>,
) -> Self
pub fn new( previous_v1_head_hash: impl Into<String>, migration_script_digest: impl Into<String>, operator_attestation: Option<Attestation>, fixture_verification_result_hash: impl Into<String>, ) -> Self
Construct a v1 -> v2 migration payload with the fixed target version.
Sourcepub fn validate(&self) -> Result<(), SchemaMigrationPayloadError>
pub fn validate(&self) -> Result<(), SchemaMigrationPayloadError>
Validate the boundary payload before it is embedded in an event.
Trait Implementations§
Source§impl Clone for SchemaMigrationV1ToV2Payload
impl Clone for SchemaMigrationV1ToV2Payload
Source§fn clone(&self) -> SchemaMigrationV1ToV2Payload
fn clone(&self) -> SchemaMigrationV1ToV2Payload
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 SchemaMigrationV1ToV2Payload
impl Debug for SchemaMigrationV1ToV2Payload
Source§impl<'de> Deserialize<'de> for SchemaMigrationV1ToV2Payload
impl<'de> Deserialize<'de> for SchemaMigrationV1ToV2Payload
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
Source§impl PartialEq for SchemaMigrationV1ToV2Payload
impl PartialEq for SchemaMigrationV1ToV2Payload
Source§fn eq(&self, other: &SchemaMigrationV1ToV2Payload) -> bool
fn eq(&self, other: &SchemaMigrationV1ToV2Payload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchemaMigrationV1ToV2Payload
impl StructuralPartialEq for SchemaMigrationV1ToV2Payload
Auto Trait Implementations§
impl Freeze for SchemaMigrationV1ToV2Payload
impl RefUnwindSafe for SchemaMigrationV1ToV2Payload
impl Send for SchemaMigrationV1ToV2Payload
impl Sync for SchemaMigrationV1ToV2Payload
impl Unpin for SchemaMigrationV1ToV2Payload
impl UnsafeUnpin for SchemaMigrationV1ToV2Payload
impl UnwindSafe for SchemaMigrationV1ToV2Payload
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