pub struct LineItemValidation {
pub is_valid: bool,
pub can_validate: bool,
pub calculated_amount: Option<f64>,
pub difference: Option<f64>,
pub difference_percent: Option<f64>,
}Expand description
行项目验证结果
Fields§
§is_valid: bool是否有效(差异在允许范围内)
can_validate: bool是否可以验证(有单价和数量)
calculated_amount: Option<f64>计算金额(单价×数量)
difference: Option<f64>差异值(实际金额 - 计算金额)
difference_percent: Option<f64>差异百分比
Trait Implementations§
Source§impl Clone for LineItemValidation
impl Clone for LineItemValidation
Source§fn clone(&self) -> LineItemValidation
fn clone(&self) -> LineItemValidation
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 moreSource§impl Debug for LineItemValidation
impl Debug for LineItemValidation
Source§impl<'de> Deserialize<'de> for LineItemValidation
impl<'de> Deserialize<'de> for LineItemValidation
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 LineItemValidation
impl RefUnwindSafe for LineItemValidation
impl Send for LineItemValidation
impl Sync for LineItemValidation
impl Unpin for LineItemValidation
impl UnsafeUnpin for LineItemValidation
impl UnwindSafe for LineItemValidation
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