pub struct BoxAPIErrorResponse {
pub object_type: Option<ObjectType>,
pub status: Option<i32>,
pub code: Option<Code>,
pub message: Option<String>,
pub context_info: Option<Box<ClientErrorContextInfo>>,
pub help_url: Option<String>,
pub request_id: Option<String>,
}
Expand description
ClientError : A generic error
Fields§
§object_type: Option<ObjectType>
error
status: Option<i32>
The HTTP status of the response.
code: Option<Code>
A Box-specific error code
message: Option<String>
A short message describing the error.
context_info: Option<Box<ClientErrorContextInfo>>
§help_url: Option<String>
A URL that links to more information about why this error occurred.
request_id: Option<String>
A unique identifier for this response, which can be used when contacting Box support.
Implementations§
Source§impl BoxAPIErrorResponse
impl BoxAPIErrorResponse
Sourcepub fn new() -> BoxAPIErrorResponse
pub fn new() -> BoxAPIErrorResponse
A generic error
Trait Implementations§
Source§impl Clone for BoxAPIErrorResponse
impl Clone for BoxAPIErrorResponse
Source§fn clone(&self) -> BoxAPIErrorResponse
fn clone(&self) -> BoxAPIErrorResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 BoxAPIErrorResponse
impl Debug for BoxAPIErrorResponse
Source§impl Default for BoxAPIErrorResponse
impl Default for BoxAPIErrorResponse
Source§fn default() -> BoxAPIErrorResponse
fn default() -> BoxAPIErrorResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoxAPIErrorResponse
impl<'de> Deserialize<'de> for BoxAPIErrorResponse
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 Display for BoxAPIErrorResponse
impl Display for BoxAPIErrorResponse
Source§impl From<BoxAPIErrorResponse> for BoxAPIError
impl From<BoxAPIErrorResponse> for BoxAPIError
Source§fn from(e: BoxAPIErrorResponse) -> Self
fn from(e: BoxAPIErrorResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BoxAPIErrorResponse
impl PartialEq for BoxAPIErrorResponse
Source§impl Serialize for BoxAPIErrorResponse
impl Serialize for BoxAPIErrorResponse
impl StructuralPartialEq for BoxAPIErrorResponse
Auto Trait Implementations§
impl Freeze for BoxAPIErrorResponse
impl RefUnwindSafe for BoxAPIErrorResponse
impl Send for BoxAPIErrorResponse
impl Sync for BoxAPIErrorResponse
impl Unpin for BoxAPIErrorResponse
impl UnwindSafe for BoxAPIErrorResponse
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