pub struct CreateCommand {
pub template_id: String,
pub create_arguments: Option<Value>,
}Expand description
CreateCommand : Create a new contract instance based on a template.
Fields§
§template_id: StringThe template of contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
create_arguments: Option<Value>The arguments required for creating a contract from this template. Required
Implementations§
Source§impl CreateCommand
impl CreateCommand
Trait Implementations§
Source§impl Clone for CreateCommand
impl Clone for CreateCommand
Source§fn clone(&self) -> CreateCommand
fn clone(&self) -> CreateCommand
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 CreateCommand
impl Debug for CreateCommand
Source§impl Default for CreateCommand
impl Default for CreateCommand
Source§fn default() -> CreateCommand
fn default() -> CreateCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCommand
impl<'de> Deserialize<'de> for CreateCommand
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 PartialEq for CreateCommand
impl PartialEq for CreateCommand
Source§impl Serialize for CreateCommand
impl Serialize for CreateCommand
impl StructuralPartialEq for CreateCommand
Auto Trait Implementations§
impl Freeze for CreateCommand
impl RefUnwindSafe for CreateCommand
impl Send for CreateCommand
impl Sync for CreateCommand
impl Unpin for CreateCommand
impl UnsafeUnpin for CreateCommand
impl UnwindSafe for CreateCommand
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