Struct offchain::types::StatusObject
source · pub struct StatusObject {
pub status: Status,
pub abort_code: Option<AbortCode>,
pub abort_message: Option<String>,
}
Fields§
§status: Status
Status of the payment from the perspective of this actor. This field can only be set by the respective sender/receiver VASP and represents the status on the sender/receiver VASP side. This field is mandatory by this respective actor (either sender or receiver side) and mutable.
abort_code: Option<AbortCode>
In the case of an abort
status, this field may be used to describe the reason for the
abort. Represents the error code of the corresponding error.
abort_message: Option<String>
Additional details about this error. To be used only when abort_code
is populated.
Implementations§
Trait Implementations§
source§impl Clone for StatusObject
impl Clone for StatusObject
source§fn clone(&self) -> StatusObject
fn clone(&self) -> StatusObject
Returns a copy 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 StatusObject
impl Debug for StatusObject
source§impl<'de> Deserialize<'de> for StatusObject
impl<'de> Deserialize<'de> for StatusObject
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<StatusObject> for StatusObject
impl PartialEq<StatusObject> for StatusObject
source§fn eq(&self, other: &StatusObject) -> bool
fn eq(&self, other: &StatusObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StatusObject
impl Serialize for StatusObject
impl Eq for StatusObject
impl StructuralEq for StatusObject
impl StructuralPartialEq for StatusObject
Auto Trait Implementations§
impl RefUnwindSafe for StatusObject
impl Send for StatusObject
impl Sync for StatusObject
impl Unpin for StatusObject
impl UnwindSafe for StatusObject
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.