pub struct SquareError {
pub category: ErrorCategory,
pub code: ErrorCode,
pub detail: Option<String>,
pub fileld: Option<String>,
}
Expand description
Represents an error encountered during a request to the Connect API.
Fields§
§category: ErrorCategory
The high-level category for the error.
code: ErrorCode
The specific code of the error.
detail: Option<String>
A human-readable description of the error for debugging purposes.
fileld: Option<String>
The name of the field provided in the original request (if any) that the error pertains to.
Trait Implementations§
Source§impl Clone for SquareError
impl Clone for SquareError
Source§fn clone(&self) -> SquareError
fn clone(&self) -> SquareError
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 SquareError
impl Debug for SquareError
Source§impl<'de> Deserialize<'de> for SquareError
impl<'de> Deserialize<'de> for SquareError
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 SquareError
impl RefUnwindSafe for SquareError
impl Send for SquareError
impl Sync for SquareError
impl Unpin for SquareError
impl UnwindSafe for SquareError
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