#[non_exhaustive]pub enum ContactFragmentError {
SourceTooLarge {
bytes: usize,
limit: usize,
},
InvalidJson {
message: String,
},
InvalidField {
field: &'static str,
message: String,
},
LimitExceeded {
field: &'static str,
found: usize,
limit: usize,
},
CanonicalTooLarge {
limit: usize,
},
}Expand description
Reader or contract violation for contact-fragment V1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SourceTooLarge
JSON source exceeded the immutable V1 input cap.
InvalidJson
The source was not valid UTF-8 JSON or used duplicate object members.
InvalidField
A required V1 field was absent, malformed, or an object contained an unknown field.
Fields
LimitExceeded
A frozen V1 row or byte bound was exceeded.
Fields
CanonicalTooLarge
RFC 8785 canonical output could not be represented within the V1 cap.
Trait Implementations§
Source§impl Clone for ContactFragmentError
impl Clone for ContactFragmentError
Source§fn clone(&self) -> ContactFragmentError
fn clone(&self) -> ContactFragmentError
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 ContactFragmentError
impl Debug for ContactFragmentError
Source§impl Display for ContactFragmentError
impl Display for ContactFragmentError
impl Eq for ContactFragmentError
Source§impl Error for ContactFragmentError
impl Error for ContactFragmentError
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()
Source§impl PartialEq for ContactFragmentError
impl PartialEq for ContactFragmentError
impl StructuralPartialEq for ContactFragmentError
Auto Trait Implementations§
impl Freeze for ContactFragmentError
impl RefUnwindSafe for ContactFragmentError
impl Send for ContactFragmentError
impl Sync for ContactFragmentError
impl Unpin for ContactFragmentError
impl UnsafeUnpin for ContactFragmentError
impl UnwindSafe for ContactFragmentError
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