pub enum ContentResolutionErrorKind {
Missing,
Expired,
PermissionDenied,
StorageUnavailable,
VersionMismatch,
HashMismatch,
UnsupportedMime,
RawContentNotAllowed,
MaxBytesExceeded,
}Expand description
Enumerates the finite content resolution error kind cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Missing
Use this variant when the contract needs to represent missing; selecting it has no side effect by itself.
Expired
Use this variant when the contract needs to represent expired; selecting it has no side effect by itself.
PermissionDenied
Use this variant when the contract needs to represent permission denied; selecting it has no side effect by itself.
Use this variant when the contract needs to represent storage unavailable; selecting it has no side effect by itself.
VersionMismatch
Use this variant when the contract needs to represent version mismatch; selecting it has no side effect by itself.
HashMismatch
Use this variant when the contract needs to represent hash mismatch; selecting it has no side effect by itself.
UnsupportedMime
Use this variant when the contract needs to represent unsupported mime; selecting it has no side effect by itself.
RawContentNotAllowed
Use this variant when the contract needs to represent raw content not allowed; selecting it has no side effect by itself.
MaxBytesExceeded
Use this variant when the contract needs to represent max bytes exceeded; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for ContentResolutionErrorKind
impl Clone for ContentResolutionErrorKind
Source§fn clone(&self) -> ContentResolutionErrorKind
fn clone(&self) -> ContentResolutionErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContentResolutionErrorKind
impl Debug for ContentResolutionErrorKind
Source§impl<'de> Deserialize<'de> for ContentResolutionErrorKind
impl<'de> Deserialize<'de> for ContentResolutionErrorKind
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 ContentResolutionErrorKind
Source§impl PartialEq for ContentResolutionErrorKind
impl PartialEq for ContentResolutionErrorKind
Source§fn eq(&self, other: &ContentResolutionErrorKind) -> bool
fn eq(&self, other: &ContentResolutionErrorKind) -> bool
self and other values to be equal, and is used by ==.