pub enum Reason {
Json,
Format,
Member,
Epoch,
Entries,
Index,
Iface,
Contract,
Duplicate,
Lineage,
}Expand description
Why a reading refused a document (core §8.6), in the text’s order.
Variants§
Json
Not strict JSON: RFC 8259, with no member twice in one object.
Format
Not an object whose format is the string zk2-catalog/1.
Member
A member missing, or one this version does not name: at the top, in an entry or in a lineage item.
Epoch
epoch is not an integer from 0 to 2^53 − 1.
Entries
entries is not an array of objects, or holds more than 1,024.
Index
An entry’s index is not the integer of its position.
Iface
An entry’s iface is not a string holding an interface id.
Contract
An entry’s contract is not a string holding a fingerprint.
Duplicate
An entry’s pair is an earlier entry’s.
Lineage
lineage is not a non-empty array of objects; or an item’s id is
not 8 lowercase hex digits, or is an earlier item’s or the
catalog’s own; or its entries is not an integer, is below the
item before it’s, or above the catalog’s count.
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Forget for Reason
impl Freeze for Reason
impl Move for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more