pub struct Percentage { /* private fields */ }Expand description
Basis points, so it is exact; may be negative or above 100 %. A JSON number is basis points,
text is a percent as a person types it: "19.5" is 1950.
Implementations§
Source§impl Percentage
impl Percentage
Trait Implementations§
Source§impl Clone for Percentage
impl Clone for Percentage
impl Copy for Percentage
Source§impl Debug for Percentage
impl Debug for Percentage
Source§impl<'de> Deserialize<'de> for Percentage
impl<'de> Deserialize<'de> for Percentage
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 Percentage
Source§impl Hash for Percentage
impl Hash for Percentage
Source§impl LogFields for Percentage
impl LogFields for Percentage
Source§impl Ord for Percentage
impl Ord for Percentage
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
impl Ordered for Percentage
Source§impl PartialEq for Percentage
impl PartialEq for Percentage
Source§impl PartialOrd for Percentage
impl PartialOrd for Percentage
Source§impl Present for Percentage
impl Present for Percentage
Source§impl Samples for Percentage
impl Samples for Percentage
Source§impl Serialize for Percentage
impl Serialize for Percentage
impl StructuralPartialEq for Percentage
Auto Trait Implementations§
impl Forget for Percentage
impl Freeze for Percentage
impl RefUnwindSafe for Percentage
impl Send for Percentage
impl Sync for Percentage
impl Unpin for Percentage
impl UnsafeUnpin for Percentage
impl UnwindSafe for Percentage
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<V> Cast for Vwhere
V: Value,
impl<V> Cast for Vwhere
V: Value,
const COLUMNS: &'static [ColumnSpec] = <V::Inner>::COLUMNS
const NULLABLE: bool = <V::Inner>::NULLABLE
Source§const SENSITIVE: bool
const SENSITIVE: bool
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<V, Error>
Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool
const HOLDS_STATES: bool
Set when a state anywhere in the value is checked on save, as a field’s of several.