#[non_exhaustive]pub struct ExercisedEvent {
pub offset: i64,
pub node_id: i32,
pub contract_id: String,
pub template_id: Identifier,
pub interface_id: Option<Identifier>,
pub choice: String,
pub consuming: bool,
pub acting_parties: Vec<String>,
pub witness_parties: Vec<String>,
pub last_descendant_node_id: i32,
pub package_name: String,
/* private fields */
}Expand description
A choice was exercised.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: i64The offset of the transaction.
node_id: i32The node id within the transaction.
contract_id: StringThe contract the choice was exercised on.
template_id: IdentifierIts template.
interface_id: Option<Identifier>The interface the choice was exercised through, if any.
choice: StringThe choice.
consuming: boolWhether the choice consumed the contract.
acting_parties: Vec<String>The parties that exercised it.
witness_parties: Vec<String>The subscribed parties the event is visible to.
last_descendant_node_id: i32The last node of the exercise’s subtree.
package_name: StringThe package name of the template.
Implementations§
Source§impl ExercisedEvent
impl ExercisedEvent
Sourcepub fn decode_argument<A>(&self) -> Result<A, ValueError>where
A: FromValue + DeserializeOwned,
pub fn decode_argument<A>(&self) -> Result<A, ValueError>where
A: FromValue + DeserializeOwned,
Decode the choice argument as A (the generated choice type).
§Errors
ValueError if there is no argument or it does not
decode as A.
Sourcepub fn decode_result<R>(&self) -> Option<Result<R, ValueError>>where
R: FromValue + DeserializeOwned,
pub fn decode_result<R>(&self) -> Option<Result<R, ValueError>>where
R: FromValue + DeserializeOwned,
Decode the choice’s result as R; None when the event carries none.
Trait Implementations§
Source§impl Clone for ExercisedEvent
impl Clone for ExercisedEvent
Auto Trait Implementations§
impl Freeze for ExercisedEvent
impl RefUnwindSafe for ExercisedEvent
impl Send for ExercisedEvent
impl Sync for ExercisedEvent
impl Unpin for ExercisedEvent
impl UnsafeUnpin for ExercisedEvent
impl UnwindSafe for ExercisedEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request