#[non_exhaustive]pub enum StorageErrorCode {
Show 40 variants
NoSuchBucket,
NoSuchKey,
NoSuchUpload,
InvalidJwt,
InvalidRequest,
InvalidArgument,
TenantNotFound,
EntityTooLarge,
EntityTooSmall,
InternalError,
ResourceAlreadyExists,
ResourceNotEmpty,
InvalidBucketName,
InvalidKey,
InvalidRange,
InvalidMimeType,
InvalidUploadId,
KeyAlreadyExists,
BucketAlreadyExists,
DatabaseTimeout,
DatabaseReadOnly,
InvalidSignature,
ExpiredToken,
SignatureDoesNotMatch,
AccessDenied,
ResourceLocked,
ResourceReferenced,
DatabaseError,
MissingContentLength,
MissingParameter,
InvalidParameter,
InvalidUploadSignature,
LockTimeout,
PreconditionFailed,
InvalidChecksum,
SlowDown,
FeatureNotEnabled,
NotSupported,
UnknownError,
Other(String),
}Expand description
Machine-readable code of a Storage API error, from the ErrorCode enum of
supabase/storage. A code this crate does not know is kept in Other.
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.
NoSuchBucket
NoSuchBucket
NoSuchKey
NoSuchKey
NoSuchUpload
NoSuchUpload
InvalidJwt
InvalidJWT
InvalidRequest
InvalidRequest
InvalidArgument
InvalidArgument
TenantNotFound
TenantNotFound
EntityTooLarge
EntityTooLarge
EntityTooSmall
EntityTooSmall
InternalError
InternalError
ResourceAlreadyExists
ResourceAlreadyExists
ResourceNotEmpty
ResourceNotEmpty
InvalidBucketName
InvalidBucketName
InvalidKey
InvalidKey
InvalidRange
InvalidRange
InvalidMimeType
InvalidMimeType
InvalidUploadId
InvalidUploadId
KeyAlreadyExists
KeyAlreadyExists
BucketAlreadyExists
BucketAlreadyExists
DatabaseTimeout
DatabaseTimeout
DatabaseReadOnly
DatabaseReadOnly
InvalidSignature
InvalidSignature
ExpiredToken
ExpiredToken
SignatureDoesNotMatch
SignatureDoesNotMatch
AccessDenied
AccessDenied
ResourceLocked
ResourceLocked
ResourceReferenced
ResourceReferenced
DatabaseError
DatabaseError
MissingContentLength
MissingContentLength
MissingParameter
MissingParameter
InvalidParameter
InvalidParameter
InvalidUploadSignature
InvalidUploadSignature
LockTimeout
LockTimeout
PreconditionFailed
PreconditionFailed
InvalidChecksum
InvalidChecksum
SlowDown
SlowDown
FeatureNotEnabled
FeatureNotEnabled
NotSupported
NotSupported
UnknownError
UnknownError
Other(String)
Any other code.
Implementations§
Trait Implementations§
Source§impl Clone for StorageErrorCode
impl Clone for StorageErrorCode
Source§impl Debug for StorageErrorCode
impl Debug for StorageErrorCode
Source§impl<'de> Deserialize<'de> for StorageErrorCode
impl<'de> Deserialize<'de> for StorageErrorCode
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 Display for StorageErrorCode
impl Display for StorageErrorCode
impl Eq for StorageErrorCode
Source§impl From<String> for StorageErrorCode
impl From<String> for StorageErrorCode
Source§impl Hash for StorageErrorCode
impl Hash for StorageErrorCode
Source§impl PartialEq for StorageErrorCode
impl PartialEq for StorageErrorCode
impl StructuralPartialEq for StorageErrorCode
Auto Trait Implementations§
impl Freeze for StorageErrorCode
impl RefUnwindSafe for StorageErrorCode
impl Send for StorageErrorCode
impl Sync for StorageErrorCode
impl Unpin for StorageErrorCode
impl UnsafeUnpin for StorageErrorCode
impl UnwindSafe for StorageErrorCode
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,
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
Compare self to
key and return true if they are equal.