pub struct CreateAndExerciseCommand {
pub template_id: String,
pub create_arguments: Option<Value>,
pub choice: String,
pub choice_argument: Option<Value>,
}
Expand description
CreateAndExerciseCommand : Create a contract and exercise a choice on it in the same transaction.
Fields§
§template_id: String
The template of the 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
choice: String
The name of the choice the client wants to exercise. Must be a valid NameString (as described in value.proto
). Required
choice_argument: Option<Value>
The argument for this choice. Required
Implementations§
Trait Implementations§
Source§impl Clone for CreateAndExerciseCommand
impl Clone for CreateAndExerciseCommand
Source§fn clone(&self) -> CreateAndExerciseCommand
fn clone(&self) -> CreateAndExerciseCommand
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 CreateAndExerciseCommand
impl Debug for CreateAndExerciseCommand
Source§impl Default for CreateAndExerciseCommand
impl Default for CreateAndExerciseCommand
Source§fn default() -> CreateAndExerciseCommand
fn default() -> CreateAndExerciseCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAndExerciseCommand
impl<'de> Deserialize<'de> for CreateAndExerciseCommand
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 CreateAndExerciseCommand
impl PartialEq for CreateAndExerciseCommand
Source§impl Serialize for CreateAndExerciseCommand
impl Serialize for CreateAndExerciseCommand
impl StructuralPartialEq for CreateAndExerciseCommand
Auto Trait Implementations§
impl Freeze for CreateAndExerciseCommand
impl RefUnwindSafe for CreateAndExerciseCommand
impl Send for CreateAndExerciseCommand
impl Sync for CreateAndExerciseCommand
impl Unpin for CreateAndExerciseCommand
impl UnwindSafe for CreateAndExerciseCommand
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