pub struct CreateInspection {
pub inspection_type: InspectionType,
pub reference_type: String,
pub reference_id: Uuid,
pub inspector_id: Option<String>,
pub scheduled_at: Option<DateTime<Utc>>,
pub notes: Option<String>,
pub items: Vec<CreateInspectionItem>,
}Expand description
Input for creating an inspection
Fields§
§inspection_type: InspectionType§reference_type: String§reference_id: Uuid§inspector_id: Option<String>§scheduled_at: Option<DateTime<Utc>>§notes: Option<String>§items: Vec<CreateInspectionItem>Trait Implementations§
Source§impl Clone for CreateInspection
impl Clone for CreateInspection
Source§fn clone(&self) -> CreateInspection
fn clone(&self) -> CreateInspection
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 CreateInspection
impl Debug for CreateInspection
Source§impl Default for CreateInspection
impl Default for CreateInspection
Source§fn default() -> CreateInspection
fn default() -> CreateInspection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateInspection
impl<'de> Deserialize<'de> for CreateInspection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInspection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInspection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CreateInspection
Source§impl PartialEq for CreateInspection
impl PartialEq for CreateInspection
Source§impl Serialize for CreateInspection
impl Serialize for CreateInspection
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 CreateInspection
Auto Trait Implementations§
impl Freeze for CreateInspection
impl RefUnwindSafe for CreateInspection
impl Send for CreateInspection
impl Sync for CreateInspection
impl Unpin for CreateInspection
impl UnsafeUnpin for CreateInspection
impl UnwindSafe for CreateInspection
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