pub struct PlanVisitRequest {
pub asset_id: Uuid,
pub schedule_id: Option<Uuid>,
pub maintenance_type: String,
pub scheduled_date: NaiveDate,
pub warehouse_id: Option<Uuid>,
pub warranty_claim_id: Option<Uuid>,
pub labor_cost: Decimal,
pub maintenance_expense_account_id: Uuid,
pub parts_inventory_account_id: Uuid,
pub labor_payable_account_id: Uuid,
}Expand description
Plan a new visit.
Fields§
§asset_id: Uuid§schedule_id: Option<Uuid>§maintenance_type: Stringpreventive (references a schedule) | corrective (ad-hoc).
scheduled_date: NaiveDate§warehouse_id: Option<Uuid>§warranty_claim_id: Option<Uuid>§labor_cost: Decimal§maintenance_expense_account_id: Uuid§parts_inventory_account_id: Uuid§labor_payable_account_id: UuidTrait Implementations§
Source§impl Debug for PlanVisitRequest
impl Debug for PlanVisitRequest
Source§impl<'de> Deserialize<'de> for PlanVisitRequest
impl<'de> Deserialize<'de> for PlanVisitRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlanVisitRequest
impl RefUnwindSafe for PlanVisitRequest
impl Send for PlanVisitRequest
impl Sync for PlanVisitRequest
impl Unpin for PlanVisitRequest
impl UnsafeUnpin for PlanVisitRequest
impl UnwindSafe for PlanVisitRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more