pub enum StripeApiError {
Stripe {
status: u16,
code: Option<String>,
message: String,
},
Transport(String),
Webhook(StripeErrorCode),
}Variants§
Implementations§
Source§impl StripeApiError
impl StripeApiError
pub fn code(&self) -> &str
pub fn is_already_scheduled_cancel(&self) -> bool
pub fn plugin_response( &self, default: StripeErrorCode, ) -> (StatusCode, StripeErrorCode)
Trait Implementations§
Source§impl Debug for StripeApiError
impl Debug for StripeApiError
Source§impl Display for StripeApiError
impl Display for StripeApiError
Source§impl Error for StripeApiError
impl Error for StripeApiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StripeApiError
impl RefUnwindSafe for StripeApiError
impl Send for StripeApiError
impl Sync for StripeApiError
impl Unpin for StripeApiError
impl UnsafeUnpin for StripeApiError
impl UnwindSafe for StripeApiError
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