pub struct Reported<T> { /* private fields */ }Expand description
A value a source reported, carrying whether it is outside the range this crate declares for the field it was reported in.
The value is carried exactly as reported: it is never coerced, clamped or dropped, whatever the flag says.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Reported<T>
Source§impl<'de> Deserialize<'de> for Reported<f64>
impl<'de> Deserialize<'de> for Reported<f64>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Reported<f64>
impl JsonSchema for Reported<f64>
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Sample for Reported<f64>
impl Sample for Reported<f64>
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
impl<T: PartialEq> StructuralPartialEq for Reported<T>
Auto Trait Implementations§
impl<T> Freeze for Reported<T>where
T: Freeze,
impl<T> RefUnwindSafe for Reported<T>where
T: RefUnwindSafe,
impl<T> Send for Reported<T>where
T: Send,
impl<T> Sync for Reported<T>where
T: Sync,
impl<T> Unpin for Reported<T>where
T: Unpin,
impl<T> UnsafeUnpin for Reported<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Reported<T>where
T: UnwindSafe,
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