pub struct OssServiceError {
pub status_code: u16,
pub code: String,
pub message: String,
pub request_id: String,
pub host_id: String,
pub resource: Option<String>,
pub string_to_sign: Option<String>,
}Expand description
Represents an OSS service error parsed from an error XML response body.
Contains the OSS-specific error fields returned by the API when a request fails with a 4xx or 5xx status code.
Fields§
§status_code: u16§code: String§message: String§request_id: String§host_id: String§resource: Option<String>§string_to_sign: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for OssServiceError
impl Clone for OssServiceError
Source§fn clone(&self) -> OssServiceError
fn clone(&self) -> OssServiceError
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 OssServiceError
impl Debug for OssServiceError
Source§impl Display for OssServiceError
impl Display for OssServiceError
Source§impl PartialEq for OssServiceError
impl PartialEq for OssServiceError
Source§fn eq(&self, other: &OssServiceError) -> bool
fn eq(&self, other: &OssServiceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OssServiceError
impl StructuralPartialEq for OssServiceError
Auto Trait Implementations§
impl Freeze for OssServiceError
impl RefUnwindSafe for OssServiceError
impl Send for OssServiceError
impl Sync for OssServiceError
impl Unpin for OssServiceError
impl UnsafeUnpin for OssServiceError
impl UnwindSafe for OssServiceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.