pub struct InvoiceValidation {
pub all_valid: bool,
pub subtotal_valid: bool,
pub total_items: usize,
pub validatable_items: usize,
pub invalid_items: usize,
pub line_items_sum: f64,
pub subtotal: Option<f64>,
pub subtotal_difference: Option<f64>,
pub subtotal_difference_percent: Option<f64>,
pub item_validations: Vec<(usize, String, LineItemValidation)>,
}Fields§
§all_valid: bool§subtotal_valid: bool§total_items: usize§validatable_items: usize§invalid_items: usize§line_items_sum: f64§subtotal: Option<f64>§subtotal_difference: Option<f64>§subtotal_difference_percent: Option<f64>§item_validations: Vec<(usize, String, LineItemValidation)>Implementations§
Source§impl InvoiceValidation
impl InvoiceValidation
pub fn print_report(&self)
Trait Implementations§
Source§impl Clone for InvoiceValidation
impl Clone for InvoiceValidation
Source§fn clone(&self) -> InvoiceValidation
fn clone(&self) -> InvoiceValidation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InvoiceValidation
impl RefUnwindSafe for InvoiceValidation
impl Send for InvoiceValidation
impl Sync for InvoiceValidation
impl Unpin for InvoiceValidation
impl UnsafeUnpin for InvoiceValidation
impl UnwindSafe for InvoiceValidation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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