pub struct CheckContractMigration { /* private fields */ }Expand description
One immutable read-only migration check with caller-stable identity.
Implementations§
Source§impl CheckContractMigration
impl CheckContractMigration
Sourcepub fn new(
operation_id: ContractMigrationOperationId,
candidate_bundle: Vec<u8>,
migration_bundle: Vec<u8>,
) -> Result<Self, ContractMigrationSubmissionError>
pub fn new( operation_id: ContractMigrationOperationId, candidate_bundle: Vec<u8>, migration_bundle: Vec<u8>, ) -> Result<Self, ContractMigrationSubmissionError>
Checks public artifact bounds and retains exact canonical bytes for retries.
Sourcepub const fn operation_id(&self) -> ContractMigrationOperationId
pub const fn operation_id(&self) -> ContractMigrationOperationId
Returns the caller-stable migration operation identity.
Trait Implementations§
Source§impl Clone for CheckContractMigration
impl Clone for CheckContractMigration
Source§fn clone(&self) -> CheckContractMigration
fn clone(&self) -> CheckContractMigration
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 CheckContractMigration
impl RefUnwindSafe for CheckContractMigration
impl Send for CheckContractMigration
impl Sync for CheckContractMigration
impl Unpin for CheckContractMigration
impl UnsafeUnpin for CheckContractMigration
impl UnwindSafe for CheckContractMigration
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].