pub struct ApplyContractMigration { /* private fields */ }Expand description
One immutable confirmed migration apply with caller-stable identity.
Implementations§
Source§impl ApplyContractMigration
impl ApplyContractMigration
Sourcepub fn new(
operation_id: ContractMigrationOperationId,
candidate_bundle: Vec<u8>,
migration_bundle: Vec<u8>,
confirmed_migration_hash: MigrationBundleHash,
) -> Result<Self, ContractMigrationSubmissionError>
pub fn new( operation_id: ContractMigrationOperationId, candidate_bundle: Vec<u8>, migration_bundle: Vec<u8>, confirmed_migration_hash: MigrationBundleHash, ) -> Result<Self, ContractMigrationSubmissionError>
Checks public artifact bounds and retains exact confirmed input for retries.
Sourcepub const fn operation_id(&self) -> ContractMigrationOperationId
pub const fn operation_id(&self) -> ContractMigrationOperationId
Returns the caller-stable migration operation identity.
Sourcepub const fn confirmed_migration_hash(&self) -> MigrationBundleHash
pub const fn confirmed_migration_hash(&self) -> MigrationBundleHash
Returns the exact operator-confirmed migration bundle identity.
Trait Implementations§
Source§impl Clone for ApplyContractMigration
impl Clone for ApplyContractMigration
Source§fn clone(&self) -> ApplyContractMigration
fn clone(&self) -> ApplyContractMigration
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 moreAuto Trait Implementations§
impl Freeze for ApplyContractMigration
impl RefUnwindSafe for ApplyContractMigration
impl Send for ApplyContractMigration
impl Sync for ApplyContractMigration
impl Unpin for ApplyContractMigration
impl UnsafeUnpin for ApplyContractMigration
impl UnwindSafe for ApplyContractMigration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].