pub enum ErrorCode {
BadRequest,
InvalidApiKey,
RequestVariableMissing,
UserDeactivated,
RealmDeactivated,
RateLimitHit,
StreamDoesNotExist,
BadNarrow,
}Expand description
Represents the Zulip server response error code variants.
Variants§
BadRequest
Indicates a general request error.
InvalidApiKey
Indicates an invalid API key.
RequestVariableMissing
Indicates a missing required request variable.
UserDeactivated
Indicates the requested user is desctivated.
RealmDeactivated
Indicates the requested organization is desctivated.
RateLimitHit
Indicates the rate limit was exceeded.
StreamDoesNotExist
Indicates the requested stream does not exist.
BadNarrow
Indicates a bad narrow filter.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const BAD_REQUEST: &str = "BAD_REQUEST"
pub const BAD_REQUEST: &str = "BAD_REQUEST"
Represents the string value for the general bad request ErrorCode.
Sourcepub const INVALID_API_KEY: &str = "INVALID_API_KEY"
pub const INVALID_API_KEY: &str = "INVALID_API_KEY"
Represents the string value for the invalid API key ErrorCode.
Sourcepub const REQUEST_VARIABLE_MISSING: &str = "REQUEST_VARIABLE_MISSING"
pub const REQUEST_VARIABLE_MISSING: &str = "REQUEST_VARIABLE_MISSING"
Represents the string value for the request variable missing ErrorCode.
Sourcepub const USER_DEACTIVATED: &str = "USER_DEACTIVATED"
pub const USER_DEACTIVATED: &str = "USER_DEACTIVATED"
Represents the string value for the user deactivated ErrorCode.
Sourcepub const REALM_DEACTIVATED: &str = "REALM_DEACTIVATED"
pub const REALM_DEACTIVATED: &str = "REALM_DEACTIVATED"
Represents the string value for the realm deactivated ErrorCode.
Sourcepub const RATE_LIMIT_HIT: &str = "RATE_LIMIT_HIT"
pub const RATE_LIMIT_HIT: &str = "RATE_LIMIT_HIT"
Represents the string value for the rate limit hit ErrorCode.
Sourcepub const STREAM_DOES_NOT_EXIST: &str = "STREAM_DOES_NOT_EXIST"
pub const STREAM_DOES_NOT_EXIST: &str = "STREAM_DOES_NOT_EXIST"
Represents the string value for the stream does not exist ErrorCode.
Sourcepub const BAD_NARROW: &str = "BAD_NARROW"
pub const BAD_NARROW: &str = "BAD_NARROW"
Represents the string value for the bad narrow ErrorCode.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.