pub struct Money(pub Decimal);Expand description
Wrapper that sends its inner rust_decimal::Decimal as SQL Server MONEY
(signed 64-bit fixed-point scaled by 10_000) instead of DECIMAL.
Wrap a Decimal in Money when binding RPC parameters to force the MONEY
wire format (type 0x6E, 8 bytes) — a plain Decimal would bind as the
generic DECIMAL type (0x6C) and incur an implicit conversion on the server.
Tuple Fields§
§0: DecimalTrait Implementations§
impl Copy for Money
impl Eq for Money
impl StructuralPartialEq for Money
Auto Trait Implementations§
impl Freeze for Money
impl RefUnwindSafe for Money
impl Send for Money
impl Sync for Money
impl Unpin for Money
impl UnsafeUnpin for Money
impl UnwindSafe for Money
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