pub struct TokenCommand { /* private fields */ }Expand description
A command that carries the contracts it needs disclosed.
A token-standard choice is meaningless without them: the participant cannot resolve the factory’s reference data otherwise, and the submission fails during interpretation. Keeping the two together means they cannot be separated by accident.
Implementations§
Source§impl TokenCommand
impl TokenCommand
Sourcepub fn disclosed_contracts(&self) -> &[DisclosedContract]
pub fn disclosed_contracts(&self) -> &[DisclosedContract]
The contracts the registry says must be disclosed.
Sourcepub fn transfer_kind(&self) -> Option<TransferKind>
pub fn transfer_kind(&self) -> Option<TransferKind>
How the registry decided to carry the transfer out.
Worth branching on: TransferKind::Offer means the transfer is
pending the receiver’s acceptance rather than done, so a caller that
treats every transfer as settled is wrong about that one.
Sourcepub fn into_submit(self, act_as: impl Into<String>) -> Submit
pub fn into_submit(self, act_as: impl Into<String>) -> Submit
An ordinary submission, with the disclosures attached.
Sourcepub fn into_prepare(self, act_as: impl Into<String>) -> Prepare
pub fn into_prepare(self, act_as: impl Into<String>) -> Prepare
An interactive submission, with the disclosures attached — for a party whose key the participant does not hold.
Sourcepub fn into_parts(self) -> (Command, Vec<DisclosedContract>)
pub fn into_parts(self) -> (Command, Vec<DisclosedContract>)
The parts, for a caller assembling a multi-command submission.
Trait Implementations§
Source§impl Clone for TokenCommand
impl Clone for TokenCommand
Auto Trait Implementations§
impl Freeze for TokenCommand
impl RefUnwindSafe for TokenCommand
impl Send for TokenCommand
impl Sync for TokenCommand
impl Unpin for TokenCommand
impl UnsafeUnpin for TokenCommand
impl UnwindSafe for TokenCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request