pub struct RecordInspectionResult {
pub item_id: Uuid,
pub quantity_passed: Decimal,
pub quantity_failed: Decimal,
pub result: InspectionResult,
pub defect_codes: Vec<String>,
pub measurements: Option<Value>,
pub notes: Option<String>,
}Expand description
Input for recording inspection results
Fields§
§item_id: Uuid§quantity_passed: Decimal§quantity_failed: Decimal§result: InspectionResult§defect_codes: Vec<String>§measurements: Option<Value>§notes: Option<String>Trait Implementations§
Source§impl Clone for RecordInspectionResult
impl Clone for RecordInspectionResult
Source§fn clone(&self) -> RecordInspectionResult
fn clone(&self) -> RecordInspectionResult
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 RecordInspectionResult
impl Debug for RecordInspectionResult
Source§impl<'de> Deserialize<'de> for RecordInspectionResult
impl<'de> Deserialize<'de> for RecordInspectionResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordInspectionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordInspectionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RecordInspectionResult
Source§impl PartialEq for RecordInspectionResult
impl PartialEq for RecordInspectionResult
Source§impl Serialize for RecordInspectionResult
impl Serialize for RecordInspectionResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RecordInspectionResult
Auto Trait Implementations§
impl Freeze for RecordInspectionResult
impl RefUnwindSafe for RecordInspectionResult
impl Send for RecordInspectionResult
impl Sync for RecordInspectionResult
impl Unpin for RecordInspectionResult
impl UnsafeUnpin for RecordInspectionResult
impl UnwindSafe for RecordInspectionResult
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