pub enum ExternalReceiptParseError {
MissingHeader,
UnknownFormatHeader {
observed: String,
},
MissingBody,
MalformedBody {
reason: String,
},
TrailingContent,
UnknownSink {
observed: String,
},
InvalidHexField {
field: &'static str,
value: String,
expected_len: usize,
},
NonMonotonic {
receipt_index: usize,
previous_event_count: u64,
event_count: u64,
},
}Expand description
Parse errors for the v1 external anchor receipt text format.
Variants§
MissingHeader
No first line was present.
UnknownFormatHeader
Header was present but was not the supported v1 header.
MissingBody
Header was present but the body line was absent.
MalformedBody
Body did not parse as a valid v1 receipt JSON document.
TrailingContent
Extra non-format structure followed the body line.
UnknownSink
Receipt referenced an unknown sink token.
InvalidHexField
A hex field did not have the expected length or lowercase ASCII shape.
Fields
NonMonotonic
Receipt history moved backwards in logical event position.
Trait Implementations§
Source§impl Clone for ExternalReceiptParseError
impl Clone for ExternalReceiptParseError
Source§fn clone(&self) -> ExternalReceiptParseError
fn clone(&self) -> ExternalReceiptParseError
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 ExternalReceiptParseError
impl Debug for ExternalReceiptParseError
Source§impl Display for ExternalReceiptParseError
impl Display for ExternalReceiptParseError
Source§impl Error for ExternalReceiptParseError
impl Error for ExternalReceiptParseError
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 ExternalReceiptParseError
impl PartialEq for ExternalReceiptParseError
Source§fn eq(&self, other: &ExternalReceiptParseError) -> bool
fn eq(&self, other: &ExternalReceiptParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExternalReceiptParseError
impl StructuralPartialEq for ExternalReceiptParseError
Auto Trait Implementations§
impl Freeze for ExternalReceiptParseError
impl RefUnwindSafe for ExternalReceiptParseError
impl Send for ExternalReceiptParseError
impl Sync for ExternalReceiptParseError
impl Unpin for ExternalReceiptParseError
impl UnsafeUnpin for ExternalReceiptParseError
impl UnwindSafe for ExternalReceiptParseError
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