pub struct ExactMoneyV1 {
pub currency: String,
pub coefficient: String,
pub scale: u8,
}Fields§
§currency: String§coefficient: String§scale: u8Implementations§
Source§impl ExactMoneyV1
impl ExactMoneyV1
pub fn validate(&self) -> Result<(), ValidationError>
pub fn round_half_even(&self, output_scale: u8) -> Result<Self, ValidationError>
Trait Implementations§
Source§impl Clone for ExactMoneyV1
impl Clone for ExactMoneyV1
Source§impl Debug for ExactMoneyV1
impl Debug for ExactMoneyV1
Source§impl<'de> Deserialize<'de> for ExactMoneyV1
impl<'de> Deserialize<'de> for ExactMoneyV1
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExactMoneyV1
Source§impl PartialEq for ExactMoneyV1
impl PartialEq for ExactMoneyV1
Source§impl Serialize for ExactMoneyV1
impl Serialize for ExactMoneyV1
impl StructuralPartialEq for ExactMoneyV1
Auto Trait Implementations§
impl Freeze for ExactMoneyV1
impl RefUnwindSafe for ExactMoneyV1
impl Send for ExactMoneyV1
impl Sync for ExactMoneyV1
impl Unpin for ExactMoneyV1
impl UnsafeUnpin for ExactMoneyV1
impl UnwindSafe for ExactMoneyV1
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