pub struct MsgMigrateContract {
pub admin: String,
pub contract: String,
pub new_code_id: u64,
pub migrate_msg: Value,
}
Expand description
Message: Exec Contract
Fields§
§admin: String
§contract: String
§new_code_id: u64
§migrate_msg: Value
Implementations§
Source§impl MsgMigrateContract
impl MsgMigrateContract
Sourcepub fn create_from_json(
admin: &str,
contract: &str,
new_code_id: u64,
migrate_msg: &str,
) -> Result<Message, TerraRustAPIError>
pub fn create_from_json( admin: &str, contract: &str, new_code_id: u64, migrate_msg: &str, ) -> Result<Message, TerraRustAPIError>
create from JSON
Sourcepub fn create_from_file(
admin: &str,
contract: &str,
new_code_id: u64,
migrate_file: &Path,
) -> Result<Message, TerraRustAPIError>
pub fn create_from_file( admin: &str, contract: &str, new_code_id: u64, migrate_file: &Path, ) -> Result<Message, TerraRustAPIError>
use provided base64 exec message switches ##SENDER##, ##ADMIN##, ##CODE_ID## with respective values
Trait Implementations§
Source§impl Debug for MsgMigrateContract
impl Debug for MsgMigrateContract
Source§impl Serialize for MsgMigrateContract
impl Serialize for MsgMigrateContract
impl MsgInternal for MsgMigrateContract
Auto Trait Implementations§
impl Freeze for MsgMigrateContract
impl RefUnwindSafe for MsgMigrateContract
impl Send for MsgMigrateContract
impl Sync for MsgMigrateContract
impl Unpin 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