pub struct BridgeErrorResponse {
pub error: String,
pub reason: String,
pub status: u16,
pub code: String,
pub extra: Option<Map<String, Value>>,
}Expand description
HTTP-friendly error for payment/validation failures.
Fields§
§error: String§reason: String§status: u16§code: String§extra: Option<Map<String, Value>>Implementations§
Source§impl BridgeErrorResponse
impl BridgeErrorResponse
pub fn from_bridge_error(err: &BridgeError) -> Self
pub fn to_json(&self) -> String
Trait Implementations§
Source§impl Clone for BridgeErrorResponse
impl Clone for BridgeErrorResponse
Source§fn clone(&self) -> BridgeErrorResponse
fn clone(&self) -> BridgeErrorResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BridgeErrorResponse
impl Debug for BridgeErrorResponse
Auto Trait Implementations§
impl Freeze for BridgeErrorResponse
impl RefUnwindSafe for BridgeErrorResponse
impl Send for BridgeErrorResponse
impl Sync for BridgeErrorResponse
impl Unpin for BridgeErrorResponse
impl UnsafeUnpin for BridgeErrorResponse
impl UnwindSafe for BridgeErrorResponse
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