pub struct DecimalFieldUpdate {
pub set: Option<String>,
pub increment: Option<String>,
pub decrement: Option<String>,
pub multiply: Option<String>,
pub divide: Option<String>,
}Expand description
Update operators for a non-nullable Decimal column (transmitted as string).
Fields§
§set: Option<String>SET column = value
increment: Option<String>SET column = column + value
decrement: Option<String>SET column = column - value
multiply: Option<String>SET column = column * value
divide: Option<String>SET column = column / value
Trait Implementations§
Source§impl Clone for DecimalFieldUpdate
impl Clone for DecimalFieldUpdate
Source§fn clone(&self) -> DecimalFieldUpdate
fn clone(&self) -> DecimalFieldUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecimalFieldUpdate
impl Debug for DecimalFieldUpdate
Source§impl Default for DecimalFieldUpdate
impl Default for DecimalFieldUpdate
Source§fn default() -> DecimalFieldUpdate
fn default() -> DecimalFieldUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecimalFieldUpdate
impl<'de> Deserialize<'de> for DecimalFieldUpdate
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
Source§impl PartialEq for DecimalFieldUpdate
impl PartialEq for DecimalFieldUpdate
Source§fn eq(&self, other: &DecimalFieldUpdate) -> bool
fn eq(&self, other: &DecimalFieldUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DecimalFieldUpdate
impl Serialize for DecimalFieldUpdate
impl Eq for DecimalFieldUpdate
impl StructuralPartialEq for DecimalFieldUpdate
Auto Trait Implementations§
impl Freeze for DecimalFieldUpdate
impl RefUnwindSafe for DecimalFieldUpdate
impl Send for DecimalFieldUpdate
impl Sync for DecimalFieldUpdate
impl Unpin for DecimalFieldUpdate
impl UnsafeUnpin for DecimalFieldUpdate
impl UnwindSafe for DecimalFieldUpdate
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