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§
Source§impl Clone for CatalogQuickAmount
impl Clone for CatalogQuickAmount
Source§fn clone(&self) -> CatalogQuickAmount
fn clone(&self) -> CatalogQuickAmount
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CatalogQuickAmount
impl Debug for CatalogQuickAmount
Source§impl Default for CatalogQuickAmount
impl Default for CatalogQuickAmount
Source§fn default() -> CatalogQuickAmount
fn default() -> CatalogQuickAmount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogQuickAmount
impl<'de> Deserialize<'de> for CatalogQuickAmount
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 CatalogQuickAmount
impl PartialEq for CatalogQuickAmount
Source§impl Serialize for CatalogQuickAmount
impl Serialize for CatalogQuickAmount
impl Eq for CatalogQuickAmount
impl StructuralPartialEq for CatalogQuickAmount
Auto Trait Implementations§
impl Freeze for CatalogQuickAmount
impl RefUnwindSafe for CatalogQuickAmount
impl Send for CatalogQuickAmount
impl Sync for CatalogQuickAmount
impl Unpin for CatalogQuickAmount
impl UnwindSafe for CatalogQuickAmount
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.