#[non_exhaustive]pub enum LemmyErrorType {
Show 167 variants
ReportReasonRequired,
ReportTooLong,
NotAModerator,
NotAnAdmin,
CantBlockYourself,
CantBlockAdmin,
CouldntUpdateUser,
PasswordsDoNotMatch,
EmailNotVerified,
EmailRequired,
CouldntUpdateComment,
CouldntUpdatePrivateMessage,
CannotLeaveAdmin,
NoLinesInHtml,
SiteMetadataPageIsNotDoctypeHtml,
PictrsResponseError(String),
PictrsPurgeResponseError(String),
PictrsCachingDisabled,
ImageUrlMissingPathSegments,
ImageUrlMissingLastPathSegment,
PictrsApiKeyNotProvided,
NoContentTypeHeader,
NotAnImageType,
NotAModOrAdmin,
NoAdmins,
NotTopAdmin,
NotTopMod,
NotLoggedIn,
NotHigherMod,
NotHigherAdmin,
SiteBan,
Deleted,
BannedFromCommunity,
CouldntFindCommunity,
CouldntFindPerson,
CouldntFindComment,
CouldntFindCommentReport,
CouldntFindPostReport,
CouldntFindPrivateMessageReport,
CouldntFindLocalUser,
CouldntFindPersonMention,
CouldntFindRegistrationApplication,
CouldntFindCommentReply,
CouldntFindPrivateMessage,
CouldntFindActivity,
PersonIsBlocked,
CommunityIsBlocked,
InstanceIsBlocked,
DownvotesAreDisabled,
InstanceIsPrivate,
InvalidPassword,
SiteDescriptionLengthOverflow,
HoneypotFailed,
RegistrationApplicationIsPending,
Locked,
CouldntCreateComment,
MaxCommentDepthReached,
NoCommentEditAllowed,
OnlyAdminsCanCreateCommunities,
CommunityAlreadyExists,
LanguageNotAllowed,
OnlyModsCanPostInCommunity,
CouldntUpdatePost,
NoPostEditAllowed,
CouldntFindPost,
EditPrivateMessageNotAllowed,
SiteAlreadyExists,
ApplicationQuestionRequired,
InvalidDefaultPostListingType,
RegistrationClosed,
RegistrationApplicationAnswerRequired,
EmailAlreadyExists,
FederationForbiddenByStrictAllowList,
PersonIsBannedFromCommunity,
ObjectIsNotPublic,
InvalidCommunity,
CannotCreatePostOrCommentInDeletedOrRemovedCommunity,
CannotReceivePage,
NewPostCannotBeLocked,
OnlyLocalAdminCanRemoveCommunity,
OnlyLocalAdminCanRestoreCommunity,
NoIdGiven,
IncorrectLogin,
InvalidQuery,
ObjectNotLocal,
PostIsLocked,
PersonIsBannedFromSite(String),
InvalidVoteValue,
PageDoesNotSpecifyCreator,
NoEmailSetup,
LocalSiteNotSetup,
EmailSmtpServerNeedsAPort,
MissingAnEmail,
RateLimitError,
InvalidName,
InvalidDisplayName,
InvalidMatrixId,
InvalidPostTitle,
InvalidBodyField,
BioLengthOverflow,
AltTextLengthOverflow,
MissingTotpToken,
MissingTotpSecret,
IncorrectTotpToken,
CouldntParseTotpSecret,
CouldntGenerateTotp,
TotpAlreadyEnabled,
CouldntLikeComment,
CouldntSaveComment,
CouldntCreateReport,
CouldntResolveReport,
CommunityModeratorAlreadyExists,
CommunityUserAlreadyBanned,
CommunityBlockAlreadyExists,
CommunityFollowerAlreadyExists,
CouldntUpdateCommunityHiddenStatus,
PersonBlockAlreadyExists,
UserAlreadyExists,
TokenNotFound,
CouldntLikePost,
CouldntSavePost,
CouldntMarkPostAsRead,
CouldntHidePost,
CouldntUpdateCommunity,
CouldntUpdateReplies,
CouldntUpdatePersonMentions,
PostTitleTooLong,
CouldntCreatePost,
CouldntCreatePrivateMessage,
CouldntUpdatePrivate,
SystemErrLogin,
CouldntSetAllRegistrationsAccepted,
CouldntSetAllEmailVerified,
Banned,
BlockedUrl,
CouldntGetComments,
CouldntGetPosts,
InvalidUrl,
EmailSendFailed,
Slurs,
CouldntFindObject,
RegistrationDenied(Option<String>),
FederationDisabled,
DomainBlocked(String),
DomainNotInAllowList(String),
FederationDisabledByStrictAllowList,
SiteNameRequired,
SiteNameLengthOverflow,
PermissiveRegex,
InvalidRegex,
CaptchaIncorrect,
CouldntCreateAudioCaptcha,
InvalidUrlScheme,
CouldntSendWebmention,
ContradictingFilters,
InstanceBlockAlreadyExists,
TooManyItems,
CommunityHasNoFollowers,
BanExpirationInPast,
InvalidUnixTime,
InvalidBotAction,
CantBlockLocalInstance,
UrlWithoutDomain,
InboxTimeout,
Unknown(String),
CantDeleteSite,
UrlLengthOverflow,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReportReasonRequired
ReportTooLong
NotAModerator
NotAnAdmin
CantBlockYourself
CantBlockAdmin
CouldntUpdateUser
PasswordsDoNotMatch
EmailNotVerified
EmailRequired
CouldntUpdateComment
CouldntUpdatePrivateMessage
CannotLeaveAdmin
NoLinesInHtml
SiteMetadataPageIsNotDoctypeHtml
PictrsResponseError(String)
PictrsPurgeResponseError(String)
PictrsCachingDisabled
ImageUrlMissingPathSegments
ImageUrlMissingLastPathSegment
PictrsApiKeyNotProvided
NoContentTypeHeader
NotAnImageType
NotAModOrAdmin
NoAdmins
NotTopAdmin
NotTopMod
NotLoggedIn
NotHigherMod
NotHigherAdmin
SiteBan
Deleted
BannedFromCommunity
CouldntFindCommunity
CouldntFindPerson
CouldntFindComment
CouldntFindCommentReport
CouldntFindPostReport
CouldntFindPrivateMessageReport
CouldntFindLocalUser
CouldntFindPersonMention
CouldntFindRegistrationApplication
CouldntFindCommentReply
CouldntFindPrivateMessage
CouldntFindActivity
PersonIsBlocked
CommunityIsBlocked
InstanceIsBlocked
DownvotesAreDisabled
InstanceIsPrivate
InvalidPassword
Password must be between 10 and 60 characters
SiteDescriptionLengthOverflow
HoneypotFailed
RegistrationApplicationIsPending
Locked
CouldntCreateComment
MaxCommentDepthReached
NoCommentEditAllowed
OnlyAdminsCanCreateCommunities
CommunityAlreadyExists
LanguageNotAllowed
OnlyModsCanPostInCommunity
CouldntUpdatePost
NoPostEditAllowed
CouldntFindPost
EditPrivateMessageNotAllowed
SiteAlreadyExists
ApplicationQuestionRequired
InvalidDefaultPostListingType
RegistrationClosed
RegistrationApplicationAnswerRequired
EmailAlreadyExists
FederationForbiddenByStrictAllowList
PersonIsBannedFromCommunity
ObjectIsNotPublic
InvalidCommunity
CannotCreatePostOrCommentInDeletedOrRemovedCommunity
CannotReceivePage
NewPostCannotBeLocked
OnlyLocalAdminCanRemoveCommunity
OnlyLocalAdminCanRestoreCommunity
NoIdGiven
IncorrectLogin
InvalidQuery
ObjectNotLocal
PostIsLocked
PersonIsBannedFromSite(String)
InvalidVoteValue
PageDoesNotSpecifyCreator
NoEmailSetup
LocalSiteNotSetup
EmailSmtpServerNeedsAPort
MissingAnEmail
RateLimitError
InvalidName
InvalidDisplayName
InvalidMatrixId
InvalidPostTitle
InvalidBodyField
BioLengthOverflow
AltTextLengthOverflow
MissingTotpToken
MissingTotpSecret
IncorrectTotpToken
CouldntParseTotpSecret
CouldntGenerateTotp
TotpAlreadyEnabled
CouldntLikeComment
CouldntSaveComment
CouldntCreateReport
CouldntResolveReport
CommunityModeratorAlreadyExists
CommunityUserAlreadyBanned
CommunityBlockAlreadyExists
CommunityFollowerAlreadyExists
CouldntUpdateCommunityHiddenStatus
PersonBlockAlreadyExists
UserAlreadyExists
TokenNotFound
CouldntLikePost
CouldntSavePost
CouldntMarkPostAsRead
CouldntHidePost
CouldntUpdateCommunity
CouldntUpdateReplies
CouldntUpdatePersonMentions
PostTitleTooLong
CouldntCreatePost
CouldntCreatePrivateMessage
CouldntUpdatePrivate
SystemErrLogin
CouldntSetAllRegistrationsAccepted
CouldntSetAllEmailVerified
Banned
BlockedUrl
CouldntGetComments
CouldntGetPosts
InvalidUrl
EmailSendFailed
Slurs
CouldntFindObject
RegistrationDenied(Option<String>)
FederationDisabled
DomainBlocked(String)
DomainNotInAllowList(String)
FederationDisabledByStrictAllowList
SiteNameRequired
SiteNameLengthOverflow
PermissiveRegex
InvalidRegex
CaptchaIncorrect
CouldntCreateAudioCaptcha
InvalidUrlScheme
CouldntSendWebmention
ContradictingFilters
InstanceBlockAlreadyExists
TooManyItems
Thrown when an API call is submitted with more than 1000 array elements, see [[MAX_API_PARAM_ELEMENTS]]
CommunityHasNoFollowers
BanExpirationInPast
InvalidUnixTime
InvalidBotAction
CantBlockLocalInstance
UrlWithoutDomain
InboxTimeout
Unknown(String)
CantDeleteSite
UrlLengthOverflow
Trait Implementations§
Source§impl Clone for LemmyErrorType
impl Clone for LemmyErrorType
Source§fn clone(&self) -> LemmyErrorType
fn clone(&self) -> LemmyErrorType
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 LemmyErrorType
impl Debug for LemmyErrorType
Source§impl<'de> Deserialize<'de> for LemmyErrorType
impl<'de> Deserialize<'de> for LemmyErrorType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LemmyErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LemmyErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LemmyErrorType
impl Display for LemmyErrorType
Source§impl Hash for LemmyErrorType
impl Hash for LemmyErrorType
Source§impl IntoEnumIterator for LemmyErrorType
impl IntoEnumIterator for LemmyErrorType
type Iterator = LemmyErrorTypeIter
fn iter() -> LemmyErrorTypeIter
Source§impl PartialEq for LemmyErrorType
impl PartialEq for LemmyErrorType
Source§impl Serialize for LemmyErrorType
impl Serialize for LemmyErrorType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LemmyErrorType
impl StructuralPartialEq for LemmyErrorType
Auto Trait Implementations§
impl Freeze for LemmyErrorType
impl RefUnwindSafe for LemmyErrorType
impl Send for LemmyErrorType
impl Sync for LemmyErrorType
impl Unpin for LemmyErrorType
impl UnwindSafe for LemmyErrorType
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