pub struct ApiError {
pub status: ApiStatus,
pub reason: String,
pub code: String,
pub secondary_code: Option<String>,
pub banned_until: Option<i64>,
pub max_character_length: Option<i32>,
pub translated_error: Option<String>,
pub custom_config: Option<Box<CustomConfigParameters>>,
}Fields§
§status: ApiStatus§reason: String§code: String§secondary_code: Option<String>§banned_until: Option<i64>§max_character_length: Option<i32>§translated_error: Option<String>§custom_config: Option<Box<CustomConfigParameters>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
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
impl StructuralPartialEq for ApiError
Auto Trait Implementations§
impl Forget for ApiError
impl Freeze for ApiErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const CustomConfigParameters is !null: Freeze,
PhantomData<CustomConfigParameters>: Freeze,
impl Move for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const CustomConfigParameters is !null: UnsafeUnpin,
PhantomData<CustomConfigParameters>: UnsafeUnpin,
impl UnwindSafe for ApiError
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