#[non_exhaustive]pub struct ApiErrorDocument { /* private fields */ }Implementations§
Source§impl ApiErrorDocument
impl ApiErrorDocument
pub fn status(&self) -> StatusCode
pub fn errors(&self) -> &[ApiErrorObject]
pub fn primary(&self) -> Option<&ApiErrorObject>
pub fn kind(&self) -> ApiErrorKind
pub fn contains_kind(&self, expected: ApiErrorKind) -> bool
pub fn has_code(&self, expected: &str) -> bool
pub fn body(&self) -> &Value
Trait Implementations§
Source§impl Clone for ApiErrorDocument
impl Clone for ApiErrorDocument
Source§impl Debug for ApiErrorDocument
impl Debug for ApiErrorDocument
Auto Trait Implementations§
impl Freeze for ApiErrorDocument
impl RefUnwindSafe for ApiErrorDocument
impl Send for ApiErrorDocument
impl Sync for ApiErrorDocument
impl Unpin for ApiErrorDocument
impl UnsafeUnpin for ApiErrorDocument
impl UnwindSafe for ApiErrorDocument
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