pub enum ContentRefValidationError {
UnsupportedKind {
kind: String,
},
InvalidChecksum {
field: String,
algorithm: ChecksumAlgorithm,
reason: String,
},
}Expand description
Describes why a content reference cannot be part of a durable commit.
Variants§
UnsupportedKind
The reference names a content strategy this build cannot write.
InvalidChecksum
A checksum value was not the algorithm’s width in lowercase hex.
Trait Implementations§
Source§impl Clone for ContentRefValidationError
impl Clone for ContentRefValidationError
Source§fn clone(&self) -> ContentRefValidationError
fn clone(&self) -> ContentRefValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentRefValidationError
impl Debug for ContentRefValidationError
Source§impl<'de> Deserialize<'de> for ContentRefValidationError
impl<'de> Deserialize<'de> for ContentRefValidationError
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 ContentRefValidationError
impl Display for ContentRefValidationError
impl Eq for ContentRefValidationError
Source§impl Error for ContentRefValidationError
impl Error for ContentRefValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ContentRefValidationError
Auto Trait Implementations§
impl Freeze for ContentRefValidationError
impl RefUnwindSafe for ContentRefValidationError
impl Send for ContentRefValidationError
impl Sync for ContentRefValidationError
impl Unpin for ContentRefValidationError
impl UnsafeUnpin for ContentRefValidationError
impl UnwindSafe for ContentRefValidationError
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