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: StringWebAssembly binary
deploy_mode: GlobalContractDeployModeTrait 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§const fn clone_from(&mut self, source: &Self)
const 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<DeployGlobalContractAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeployGlobalContractAction, <__D as Deserializer<'de>>::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) -> DeployGlobalContractAction
fn from(value: &DeployGlobalContractAction) -> DeployGlobalContractAction
Converts to this type from the input type.
Source§impl From<DeployGlobalContractAction> for Action
impl From<DeployGlobalContractAction> for Action
Source§fn from(value: DeployGlobalContractAction) -> Action
fn from(value: DeployGlobalContractAction) -> Action
Converts to this type from the input type.
Source§impl Serialize for DeployGlobalContractAction
impl Serialize for DeployGlobalContractAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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