pub struct MsgMigrateContract {
pub sender: AccountId,
pub contract: AccountId,
pub code_id: u64,
pub msg: Vec<u8>,
}Expand description
MsgMigrateContract runs a code upgrade/ downgrade for a smart contract
Fields§
§sender: AccountIdSender is the that actor that signed the messages
contract: AccountIdContract is the address of the smart contract
code_id: u64CodeID references the new WASM code
msg: Vec<u8>Msg json encoded message to be passed to the contract on migration
Trait Implementations§
Source§impl Clone for MsgMigrateContract
impl Clone for MsgMigrateContract
Source§fn clone(&self) -> MsgMigrateContract
fn clone(&self) -> MsgMigrateContract
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 MsgMigrateContract
impl Debug for MsgMigrateContract
impl Eq for MsgMigrateContract
Source§impl From<MsgMigrateContract> for MsgMigrateContract
impl From<MsgMigrateContract> for MsgMigrateContract
Source§fn from(msg: MsgMigrateContract) -> MsgMigrateContract
fn from(msg: MsgMigrateContract) -> MsgMigrateContract
Converts to this type from the input type.
Source§impl Msg for MsgMigrateContract
impl Msg for MsgMigrateContract
Source§type Proto = MsgMigrateContract
type Proto = MsgMigrateContract
Protocol Buffers type
Source§impl Ord for MsgMigrateContract
impl Ord for MsgMigrateContract
Source§fn cmp(&self, other: &MsgMigrateContract) -> Ordering
fn cmp(&self, other: &MsgMigrateContract) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MsgMigrateContract
impl PartialEq for MsgMigrateContract
Source§impl PartialOrd for MsgMigrateContract
impl PartialOrd for MsgMigrateContract
impl StructuralPartialEq for MsgMigrateContract
Source§impl TryFrom<MsgMigrateContract> for MsgMigrateContract
impl TryFrom<MsgMigrateContract> for MsgMigrateContract
Source§fn try_from(proto: MsgMigrateContract) -> Result<MsgMigrateContract>
fn try_from(proto: MsgMigrateContract) -> Result<MsgMigrateContract>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MsgMigrateContract
impl RefUnwindSafe for MsgMigrateContract
impl Send for MsgMigrateContract
impl Sync for MsgMigrateContract
impl Unpin for MsgMigrateContract
impl UnsafeUnpin for MsgMigrateContract
impl UnwindSafe for MsgMigrateContract
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request