pub struct SessionActionsResponse {
pub tx_id: Option<TxId>,
pub orders: Option<Vec<Order>>,
pub code: Option<u32>,
pub message: Option<String>,
pub reason: Option<String>,
pub receipts: Option<Value>,
}Expand description
Response from POST /v1/session/actions.
Fields§
§tx_id: Option<TxId>§orders: Option<Vec<Order>>§code: Option<u32>§message: Option<String>§reason: Option<String>§receipts: Option<Value>Implementations§
Source§impl SessionActionsResponse
impl SessionActionsResponse
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if the response indicates success (has tx_id).
Sourcepub fn is_preflight_error(&self) -> bool
pub fn is_preflight_error(&self) -> bool
Returns true if this is a pre-flight validation error (has code field).
Sourcepub fn is_onchain_error(&self) -> bool
pub fn is_onchain_error(&self) -> bool
Returns true if this is an on-chain revert error (has message but no code).
Trait Implementations§
Source§impl Clone for SessionActionsResponse
impl Clone for SessionActionsResponse
Source§fn clone(&self) -> SessionActionsResponse
fn clone(&self) -> SessionActionsResponse
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 SessionActionsResponse
impl Debug for SessionActionsResponse
Source§impl<'de> Deserialize<'de> for SessionActionsResponse
impl<'de> Deserialize<'de> for SessionActionsResponse
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 SessionActionsResponse
impl RefUnwindSafe for SessionActionsResponse
impl Send for SessionActionsResponse
impl Sync for SessionActionsResponse
impl Unpin for SessionActionsResponse
impl UnwindSafe for SessionActionsResponse
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