pub struct SmallMoney(pub Decimal);Expand description
Wrapper that sends its inner rust_decimal::Decimal as SQL Server
SMALLMONEY (signed 32-bit fixed-point scaled by 10_000).
Tuple Fields§
§0: DecimalTrait Implementations§
Source§impl Clone for SmallMoney
impl Clone for SmallMoney
Source§fn clone(&self) -> SmallMoney
fn clone(&self) -> SmallMoney
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 SmallMoney
impl Debug for SmallMoney
Source§impl From<SmallMoney> for SqlValue
Available on crate feature decimal only.
impl From<SmallMoney> for SqlValue
Available on crate feature
decimal only.Source§fn from(v: SmallMoney) -> Self
fn from(v: SmallMoney) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SmallMoney
impl PartialEq for SmallMoney
Source§impl ToSql for SmallMoney
Available on crate feature decimal only.
impl ToSql for SmallMoney
Available on crate feature
decimal only.impl Copy for SmallMoney
impl Eq for SmallMoney
impl StructuralPartialEq for SmallMoney
Auto Trait Implementations§
impl Freeze for SmallMoney
impl RefUnwindSafe for SmallMoney
impl Send for SmallMoney
impl Sync for SmallMoney
impl Unpin for SmallMoney
impl UnsafeUnpin for SmallMoney
impl UnwindSafe for SmallMoney
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