pub enum BibleDataFormatErrorCode {
InvalidJson,
InvalidType,
MissingField,
InvalidValue,
DuplicateId,
ReservedField,
NonJsonValue,
}Expand description
Stable machine-readable codes for malformed Bible and catalog data.
Variants§
InvalidJson
Input was not valid JSON or UTF-8 JSON.
InvalidType
A JSON value had the wrong type.
MissingField
A required field was absent.
InvalidValue
A value violated the content contract.
DuplicateId
An identifier appeared more than once.
ReservedField
Extension data used a structural field name.
NonJsonValue
A value could not be represented as JSON.
Implementations§
Trait Implementations§
Source§impl Clone for BibleDataFormatErrorCode
impl Clone for BibleDataFormatErrorCode
Source§fn clone(&self) -> BibleDataFormatErrorCode
fn clone(&self) -> BibleDataFormatErrorCode
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 BibleDataFormatErrorCode
Source§impl Debug for BibleDataFormatErrorCode
impl Debug for BibleDataFormatErrorCode
Source§impl<'de> Deserialize<'de> for BibleDataFormatErrorCode
impl<'de> Deserialize<'de> for BibleDataFormatErrorCode
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 BibleDataFormatErrorCode
impl Display for BibleDataFormatErrorCode
impl Eq for BibleDataFormatErrorCode
Source§impl Hash for BibleDataFormatErrorCode
impl Hash for BibleDataFormatErrorCode
Source§impl PartialEq for BibleDataFormatErrorCode
impl PartialEq for BibleDataFormatErrorCode
Source§impl Serialize for BibleDataFormatErrorCode
impl Serialize for BibleDataFormatErrorCode
impl StructuralPartialEq for BibleDataFormatErrorCode
Auto Trait Implementations§
impl Freeze for BibleDataFormatErrorCode
impl RefUnwindSafe for BibleDataFormatErrorCode
impl Send for BibleDataFormatErrorCode
impl Sync for BibleDataFormatErrorCode
impl Unpin for BibleDataFormatErrorCode
impl UnsafeUnpin for BibleDataFormatErrorCode
impl UnwindSafe for BibleDataFormatErrorCode
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.