pub struct SwapFlowError {
pub code: String,
pub message: String,
}
Expand description
SwapFlowError : The error message for the swap
Fields§
§code: String
The code representing the error
message: String
Error message
Implementations§
Source§impl SwapFlowError
impl SwapFlowError
Sourcepub fn new(code: String, message: String) -> SwapFlowError
pub fn new(code: String, message: String) -> SwapFlowError
The error message for the swap
Trait Implementations§
Source§impl Clone for SwapFlowError
impl Clone for SwapFlowError
Source§fn clone(&self) -> SwapFlowError
fn clone(&self) -> SwapFlowError
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 SwapFlowError
impl Debug for SwapFlowError
Source§impl Default for SwapFlowError
impl Default for SwapFlowError
Source§fn default() -> SwapFlowError
fn default() -> SwapFlowError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwapFlowError
impl<'de> Deserialize<'de> for SwapFlowError
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 for SwapFlowError
impl PartialEq for SwapFlowError
Source§impl Serialize for SwapFlowError
impl Serialize for SwapFlowError
impl StructuralPartialEq for SwapFlowError
Auto Trait Implementations§
impl Freeze for SwapFlowError
impl RefUnwindSafe for SwapFlowError
impl Send for SwapFlowError
impl Sync for SwapFlowError
impl Unpin for SwapFlowError
impl UnwindSafe for SwapFlowError
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