pub struct ClientErrorCode(pub String);Tuple Fields§
§0: StringImplementations§
Source§impl ClientErrorCode
impl ClientErrorCode
pub const CREATED: &'static str = "created"
pub const ACCEPTED: &'static str = "accepted"
pub const NO_CONTENT: &'static str = "no_content"
pub const REDIRECT: &'static str = "redirect"
pub const NOT_MODIFIED: &'static str = "not_modified"
pub const BAD_REQUEST: &'static str = "bad_request"
pub const UNAUTHORIZED: &'static str = "unauthorized"
pub const FORBIDDEN: &'static str = "forbidden"
pub const NOT_FOUND: &'static str = "not_found"
pub const METHOD_NOT_ALLOWED: &'static str = "method_not_allowed"
pub const CONFLICT: &'static str = "conflict"
pub const PRECONDITION_FAILED: &'static str = "precondition_failed"
pub const TOO_MANY_REQUESTS: &'static str = "too_many_requests"
pub const INTERNAL_SERVER_ERROR: &'static str = "internal_server_error"
pub const UNAVAILABLE: &'static str = "unavailable"
pub const ITEM_NAME_INVALID: &'static str = "item_name_invalid"
pub const INSUFFICIENT_SCOPE: &'static str = "insufficient_scope"
Trait Implementations§
Source§impl Clone for ClientErrorCode
impl Clone for ClientErrorCode
Source§fn clone(&self) -> ClientErrorCode
fn clone(&self) -> ClientErrorCode
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 ClientErrorCode
impl Debug for ClientErrorCode
Source§impl Default for ClientErrorCode
impl Default for ClientErrorCode
Source§fn default() -> ClientErrorCode
fn default() -> ClientErrorCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientErrorCode
impl<'de> Deserialize<'de> for ClientErrorCode
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 Eq for ClientErrorCode
Source§impl PartialEq for ClientErrorCode
impl PartialEq for ClientErrorCode
Source§impl Serialize for ClientErrorCode
impl Serialize for ClientErrorCode
impl StructuralPartialEq for ClientErrorCode
Auto Trait Implementations§
impl Freeze for ClientErrorCode
impl RefUnwindSafe for ClientErrorCode
impl Send for ClientErrorCode
impl Sync for ClientErrorCode
impl Unpin for ClientErrorCode
impl UnsafeUnpin for ClientErrorCode
impl UnwindSafe for ClientErrorCode
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