pub struct ExerciseCommand {
pub template_id: String,
pub contract_id: String,
pub choice: String,
pub choice_argument: Option<Value>,
}
Expand description
ExerciseCommand : Exercise a choice on an existing contract.
Fields§
§template_id: String
The template of contract the client wants to exercise. 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
contract_id: String
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in value.proto
). 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 ExerciseCommand
impl Clone for ExerciseCommand
Source§fn clone(&self) -> ExerciseCommand
fn clone(&self) -> ExerciseCommand
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 ExerciseCommand
impl Debug for ExerciseCommand
Source§impl Default for ExerciseCommand
impl Default for ExerciseCommand
Source§fn default() -> ExerciseCommand
fn default() -> ExerciseCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExerciseCommand
impl<'de> Deserialize<'de> for ExerciseCommand
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 ExerciseCommand
impl PartialEq for ExerciseCommand
Source§impl Serialize for ExerciseCommand
impl Serialize for ExerciseCommand
impl StructuralPartialEq for ExerciseCommand
Auto Trait Implementations§
impl Freeze for ExerciseCommand
impl RefUnwindSafe for ExerciseCommand
impl Send for ExerciseCommand
impl Sync for ExerciseCommand
impl Unpin for ExerciseCommand
impl UnwindSafe for ExerciseCommand
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