pub struct TrustTokenOperationDoneEvent { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security and experimental only.Expand description
Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
Implementations§
Source§impl TrustTokenOperationDoneEvent
impl TrustTokenOperationDoneEvent
pub fn builder() -> TrustTokenOperationDoneEventBuilder
Sourcepub fn status(&self) -> &TrustTokenOperationDoneEventStatus
pub fn status(&self) -> &TrustTokenOperationDoneEventStatus
Detailed success or error status of the operation. ‘AlreadyExists’ also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
pub fn type(&self) -> &JsonValue
pub fn request_id(&self) -> &RequestId
Sourcepub fn top_level_origin(&self) -> Option<&String>
pub fn top_level_origin(&self) -> Option<&String>
Top level origin. The context in which the operation was attempted.
Sourcepub fn issuer_origin(&self) -> Option<&String>
pub fn issuer_origin(&self) -> Option<&String>
Origin of the issuer in case of a “Issuance” or “Redemption” operation.
Sourcepub fn issued_token_count(&self) -> Option<&u32>
pub fn issued_token_count(&self) -> Option<&u32>
The number of obtained Trust Tokens on a successful “Issuance” operation.
Trait Implementations§
Source§impl Clone for TrustTokenOperationDoneEvent
impl Clone for TrustTokenOperationDoneEvent
Source§fn clone(&self) -> TrustTokenOperationDoneEvent
fn clone(&self) -> TrustTokenOperationDoneEvent
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 TrustTokenOperationDoneEvent
impl Debug for TrustTokenOperationDoneEvent
Source§impl<'de> Deserialize<'de> for TrustTokenOperationDoneEvent
impl<'de> Deserialize<'de> for TrustTokenOperationDoneEvent
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
Auto Trait Implementations§
impl Freeze for TrustTokenOperationDoneEvent
impl RefUnwindSafe for TrustTokenOperationDoneEvent
impl Send for TrustTokenOperationDoneEvent
impl Sync for TrustTokenOperationDoneEvent
impl Unpin for TrustTokenOperationDoneEvent
impl UnwindSafe for TrustTokenOperationDoneEvent
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