pub struct AccountError {
pub code: String,
pub message: String,
}Expand description
AccountError : Per-account failure attached to AccountStatus.error inside a fan-out Envelope. code is machine-readable and stable across releases for the canonical values (auth_expired, rate_limited, provider_5xx, timeout); unknown is a fallback and should not be relied on.
Fields§
§code: String§message: StringImplementations§
Source§impl AccountError
impl AccountError
Sourcepub fn new(code: String, message: String) -> AccountError
pub fn new(code: String, message: String) -> AccountError
Per-account failure attached to AccountStatus.error inside a fan-out Envelope. code is machine-readable and stable across releases for the canonical values (auth_expired, rate_limited, provider_5xx, timeout); unknown is a fallback and should not be relied on.
Trait Implementations§
Source§impl Clone for AccountError
impl Clone for AccountError
Source§fn clone(&self) -> AccountError
fn clone(&self) -> AccountError
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 AccountError
impl Debug for AccountError
Source§impl Default for AccountError
impl Default for AccountError
Source§fn default() -> AccountError
fn default() -> AccountError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountError
impl<'de> Deserialize<'de> for AccountError
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 AccountError
impl PartialEq for AccountError
Source§fn eq(&self, other: &AccountError) -> bool
fn eq(&self, other: &AccountError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountError
impl Serialize for AccountError
impl StructuralPartialEq for AccountError
Auto Trait Implementations§
impl Freeze for AccountError
impl RefUnwindSafe for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl UnsafeUnpin for AccountError
impl UnwindSafe for AccountError
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