pub enum ReportValidationError {
Show 13 variants
InvalidEnvelope {
message: String,
},
WrongSchema {
expected: &'static str,
observed: String,
},
IdentityMismatch {
field: &'static str,
expected: ReportIdentifier,
observed: ReportIdentifier,
},
RequestedCountsMismatch {
expected: ReportCounts,
observed: ReportCounts,
},
ObservedCountsMismatch {
requested: ReportCounts,
observed: ReportCounts,
},
ObservedCountsExceedRequested {
requested: ReportCounts,
observed: ReportCounts,
},
UnknownOutcome {
status: String,
},
ZeroIterations,
EmptySuccessSamples,
SampleCountMismatch {
expected: u32,
observed: usize,
},
TooManySamples {
count: usize,
limit: usize,
},
EmptyFailureMessage,
FailureMessageTooLong {
length: usize,
limit: usize,
},
}Expand description
Strict validation or parsing failure for a v2 report.
Variants§
InvalidEnvelope
WrongSchema
IdentityMismatch
RequestedCountsMismatch
ObservedCountsMismatch
ObservedCountsExceedRequested
UnknownOutcome
ZeroIterations
EmptySuccessSamples
SampleCountMismatch
TooManySamples
EmptyFailureMessage
FailureMessageTooLong
Trait Implementations§
Source§impl Clone for ReportValidationError
impl Clone for ReportValidationError
Source§impl Debug for ReportValidationError
impl Debug for ReportValidationError
Source§impl Display for ReportValidationError
impl Display for ReportValidationError
impl Eq for ReportValidationError
Source§impl Error for ReportValidationError
impl Error for ReportValidationError
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 From<ReportValidationError> for ReportBindingError
impl From<ReportValidationError> for ReportBindingError
Source§fn from(source: ReportValidationError) -> Self
fn from(source: ReportValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReportValidationError
impl PartialEq for ReportValidationError
impl StructuralPartialEq for ReportValidationError
Auto Trait Implementations§
impl Freeze for ReportValidationError
impl RefUnwindSafe for ReportValidationError
impl Send for ReportValidationError
impl Sync for ReportValidationError
impl Unpin for ReportValidationError
impl UnsafeUnpin for ReportValidationError
impl UnwindSafe for ReportValidationError
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