pub struct VendorContext {
pub vendor_id: String,
pub is_new: bool,
pub is_strategic: bool,
pub is_international: bool,
pub is_dormant_reactivation: bool,
pub total_spend: Decimal,
pub days_since_creation: i64,
pub days_since_last_activity: i64,
}Expand description
Context information about a vendor.
Fields§
§vendor_id: StringVendor ID.
is_new: boolWhether vendor is new (< threshold days).
is_strategic: boolWhether vendor is strategic (high spend).
is_international: boolWhether vendor is international.
is_dormant_reactivation: boolWhether this is a dormant vendor reactivation.
total_spend: DecimalTotal spend with this vendor.
days_since_creation: i64Days since vendor creation.
days_since_last_activity: i64Days since last activity.
Trait Implementations§
Source§impl Clone for VendorContext
impl Clone for VendorContext
Source§fn clone(&self) -> VendorContext
fn clone(&self) -> VendorContext
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 VendorContext
impl Debug for VendorContext
Source§impl Default for VendorContext
impl Default for VendorContext
Source§fn default() -> VendorContext
fn default() -> VendorContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VendorContext
impl RefUnwindSafe for VendorContext
impl Send for VendorContext
impl Sync for VendorContext
impl Unpin for VendorContext
impl UnwindSafe for VendorContext
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