pub struct VisitCompletionRow {
pub asset_id: Uuid,
pub status: String,
pub warehouse_id: Option<Uuid>,
pub labor_cost: Decimal,
pub maintenance_expense_account_id: Option<Uuid>,
pub parts_inventory_account_id: Option<Uuid>,
pub labor_payable_account_id: Option<Uuid>,
pub journal_id: Option<Uuid>,
pub total_cost: Decimal,
pub schedule_id: Option<Uuid>,
pub maintenance_type: String,
}Expand description
A visit’s state as the completion path reads it — the accounts are Option because the columns are
nullable, and the service turns a missing one into a domain error.
Fields§
§asset_id: Uuid§status: String§warehouse_id: Option<Uuid>§labor_cost: Decimal§maintenance_expense_account_id: Option<Uuid>§parts_inventory_account_id: Option<Uuid>§labor_payable_account_id: Option<Uuid>§journal_id: Option<Uuid>§total_cost: Decimal§schedule_id: Option<Uuid>§maintenance_type: StringAuto Trait Implementations§
impl Freeze for VisitCompletionRow
impl RefUnwindSafe for VisitCompletionRow
impl Send for VisitCompletionRow
impl Sync for VisitCompletionRow
impl Unpin for VisitCompletionRow
impl UnsafeUnpin for VisitCompletionRow
impl UnwindSafe for VisitCompletionRow
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
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