Struct square_api_client::models::CatalogQuickAmount
source · [−]pub struct CatalogQuickAmount {
pub type: CatalogQuickAmountType,
pub amount: Money,
pub score: Option<i64>,
pub ordinal: Option<i64>,
}
Expand description
Represents a Quick Amount in the Catalog.
Fields
type: CatalogQuickAmountType
Represents the type of the Quick Amount.
amount: Money
Represents the actual amount of the Quick Amount with Money type.
score: Option<i64>
Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100]. MANUAL type amount will always have score = 100.
ordinal: Option<i64>
The order in which this Quick Amount should be displayed.
Trait Implementations
sourceimpl Clone for CatalogQuickAmount
impl Clone for CatalogQuickAmount
sourcefn clone(&self) -> CatalogQuickAmount
fn clone(&self) -> CatalogQuickAmount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CatalogQuickAmount
impl Debug for CatalogQuickAmount
sourceimpl Default for CatalogQuickAmount
impl Default for CatalogQuickAmount
sourcefn default() -> CatalogQuickAmount
fn default() -> CatalogQuickAmount
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogQuickAmount
impl<'de> Deserialize<'de> for CatalogQuickAmount
sourcefn 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
sourceimpl PartialEq<CatalogQuickAmount> for CatalogQuickAmount
impl PartialEq<CatalogQuickAmount> for CatalogQuickAmount
sourcefn eq(&self, other: &CatalogQuickAmount) -> bool
fn eq(&self, other: &CatalogQuickAmount) -> bool
sourceimpl Serialize for CatalogQuickAmount
impl Serialize for CatalogQuickAmount
impl Eq for CatalogQuickAmount
impl StructuralEq for CatalogQuickAmount
impl StructuralPartialEq for CatalogQuickAmount
Auto Trait Implementations
impl RefUnwindSafe for CatalogQuickAmount
impl Send for CatalogQuickAmount
impl Sync for CatalogQuickAmount
impl Unpin for CatalogQuickAmount
impl UnwindSafe for CatalogQuickAmount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.