pub struct ExerciseByKeyCommand {
pub template_id: String,
pub contract_key: Option<Value>,
pub choice: String,
pub choice_argument: Option<Value>,
}
Expand description
ExerciseByKeyCommand : Exercise a choice on an existing contract specified by its key.
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_key: Option<Value>
The key of the contract the client wants to exercise upon. 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 ExerciseByKeyCommand
impl Clone for ExerciseByKeyCommand
Source§fn clone(&self) -> ExerciseByKeyCommand
fn clone(&self) -> ExerciseByKeyCommand
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 ExerciseByKeyCommand
impl Debug for ExerciseByKeyCommand
Source§impl Default for ExerciseByKeyCommand
impl Default for ExerciseByKeyCommand
Source§fn default() -> ExerciseByKeyCommand
fn default() -> ExerciseByKeyCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExerciseByKeyCommand
impl<'de> Deserialize<'de> for ExerciseByKeyCommand
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 ExerciseByKeyCommand
impl PartialEq for ExerciseByKeyCommand
Source§impl Serialize for ExerciseByKeyCommand
impl Serialize for ExerciseByKeyCommand
impl StructuralPartialEq for ExerciseByKeyCommand
Auto Trait Implementations§
impl Freeze for ExerciseByKeyCommand
impl RefUnwindSafe for ExerciseByKeyCommand
impl Send for ExerciseByKeyCommand
impl Sync for ExerciseByKeyCommand
impl Unpin for ExerciseByKeyCommand
impl UnwindSafe for ExerciseByKeyCommand
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