Enum rive_models::ApiError
source · pub enum ApiError {
Show 47 variants
LabelMe,
AlreadyOnboarded,
UsernameTaken,
InvalidUsername,
UnknownUser,
AlreadyFriends,
AlreadySentRequest,
Blocked,
BlockedByOther,
NotFriends,
UnknownChannel,
UnknownAttachment,
UnknownMessage,
CannotEditMessage,
CannotJoinCall,
TooManyAttachments,
TooManyReplies,
EmptyMessage,
PayloadTooLarge,
CannotRemoveYourself,
GroupTooLarge {
max: usize,
},
AlreadyInGroup,
NotInGroup,
UnknownServer,
InvalidRole,
Banned,
TooManyServers {
max: usize,
},
TooManyEmoji,
ReachedMaximumBots,
IsBot,
BotIsPrivate,
MissingPermission {
permission: Permission,
},
MissingUserPermission {
permission: UserPermission,
},
NotElevated,
CannotGiveMissingPermissions,
NotOwner,
DatabaseError {
operation: String,
with: String,
},
InternalError,
InvalidOperation,
InvalidCredentials,
InvalidSession,
DuplicateNonce,
VosoUnavailable,
NotFound,
NoEffect,
FailedValidation,
Unauthenticated,
}
Variants§
LabelMe
AlreadyOnboarded
UsernameTaken
InvalidUsername
UnknownUser
AlreadyFriends
AlreadySentRequest
Blocked
BlockedByOther
NotFriends
UnknownChannel
UnknownAttachment
UnknownMessage
CannotEditMessage
CannotJoinCall
TooManyAttachments
TooManyReplies
EmptyMessage
PayloadTooLarge
CannotRemoveYourself
GroupTooLarge
AlreadyInGroup
NotInGroup
UnknownServer
InvalidRole
Banned
TooManyServers
TooManyEmoji
ReachedMaximumBots
IsBot
BotIsPrivate
MissingPermission
Fields
§
permission: Permission
MissingUserPermission
Fields
§
permission: UserPermission
NotElevated
CannotGiveMissingPermissions
NotOwner
DatabaseError
InternalError
InvalidOperation
InvalidCredentials
InvalidSession
DuplicateNonce
NotFound
NoEffect
FailedValidation
Unauthenticated
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
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 Ord for ApiError
impl Ord for ApiError
source§impl PartialEq<ApiError> for ApiError
impl PartialEq<ApiError> for ApiError
source§impl PartialOrd<ApiError> for ApiError
impl PartialOrd<ApiError> for ApiError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more