pub struct DeployGlobalContractAction {
pub code: String,
pub deploy_mode: GlobalContractDeployMode,
}
Expand description
Deploy global contract action
JSON schema
{
"description": "Deploy global contract action",
"type": "object",
"required": [
"code",
"deploy_mode"
],
"properties": {
"code": {
"description": "WebAssembly binary",
"type": "string"
},
"deploy_mode": {
"$ref": "#/components/schemas/GlobalContractDeployMode"
}
}
}
Fields§
§code: String
WebAssembly binary
deploy_mode: GlobalContractDeployMode
Trait Implementations§
Source§impl Clone for DeployGlobalContractAction
impl Clone for DeployGlobalContractAction
Source§fn clone(&self) -> DeployGlobalContractAction
fn clone(&self) -> DeployGlobalContractAction
Returns a duplicate of the value. Read more
1.0.0 · 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 DeployGlobalContractAction
impl Debug for DeployGlobalContractAction
Source§impl<'de> Deserialize<'de> for DeployGlobalContractAction
impl<'de> Deserialize<'de> for DeployGlobalContractAction
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 From<&DeployGlobalContractAction> for DeployGlobalContractAction
impl From<&DeployGlobalContractAction> for DeployGlobalContractAction
Source§fn from(value: &DeployGlobalContractAction) -> Self
fn from(value: &DeployGlobalContractAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployGlobalContractAction> for Action
impl From<DeployGlobalContractAction> for Action
Source§fn from(value: DeployGlobalContractAction) -> Self
fn from(value: DeployGlobalContractAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeployGlobalContractAction
impl RefUnwindSafe for DeployGlobalContractAction
impl Send for DeployGlobalContractAction
impl Sync for DeployGlobalContractAction
impl Unpin for DeployGlobalContractAction
impl UnwindSafe for DeployGlobalContractAction
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