pub enum PublishedChecksum {
Absent,
Empty,
Malformed,
}Expand description
Which unusable shape GitHub’s optional sha256_checksum arrived in.
Three distinct facts about the response, one shared remedy. They are not collapsed into a boolean because the operator reading the refusal is troubleshooting GitHub’s response, and “the field was missing”, “the field was blank” and “the field was not a digest” send them to three different places.
Variants§
Absent
The field was not present at all.
Empty
The field was present and blank.
Malformed
The field was present and was not 64 hexadecimal characters.
Implementations§
Trait Implementations§
Source§impl Clone for PublishedChecksum
impl Clone for PublishedChecksum
Source§fn clone(&self) -> PublishedChecksum
fn clone(&self) -> PublishedChecksum
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 moreimpl Copy for PublishedChecksum
Source§impl Debug for PublishedChecksum
impl Debug for PublishedChecksum
Source§impl Display for PublishedChecksum
impl Display for PublishedChecksum
impl Eq for PublishedChecksum
Source§impl PartialEq for PublishedChecksum
impl PartialEq for PublishedChecksum
impl StructuralPartialEq for PublishedChecksum
Auto Trait Implementations§
impl Freeze for PublishedChecksum
impl RefUnwindSafe for PublishedChecksum
impl Send for PublishedChecksum
impl Sync for PublishedChecksum
impl Unpin for PublishedChecksum
impl UnsafeUnpin for PublishedChecksum
impl UnwindSafe for PublishedChecksum
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,
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.