pub trait StripeClientErr {
// Required method
fn deserialize_err(msg: impl Display) -> Self;
}
Expand description
This trait allows clients implementing StripeClient
to define their own error type,
while ensuring they can receive deserialization errors.
Required Methods§
Sourcefn deserialize_err(msg: impl Display) -> Self
fn deserialize_err(msg: impl Display) -> Self
Raised when we cannot deserialize the bytes received from a request into the specified type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.