#[repr(u32)]pub enum PriceSource {
PRICE_SOURCE_EDIT_DLG = 0,
PRICE_SOURCE_FQ = 1,
PRICE_SOURCE_USER_PRICE = 2,
PRICE_SOURCE_XFER_DLG_VAL = 3,
PRICE_SOURCE_SPLIT_REG = 4,
PRICE_SOURCE_SPLIT_IMPORT = 5,
PRICE_SOURCE_STOCK_SPLIT = 6,
PRICE_SOURCE_STOCK_TRANSACTION = 7,
PRICE_SOURCE_INVOICE = 8,
PRICE_SOURCE_TEMP = 9,
PRICE_SOURCE_INVALID = 10,
}Expand description
Price source enum. Be sure to keep in sync with the source_name array in gnc-pricedb.c. These are in preference order, so for example a quote with PRICE_SOURCE_EDIT_DLG will overwrite one with PRICE_SOURCE_FQ but not the other way around.
Variants§
PRICE_SOURCE_EDIT_DLG = 0
PRICE_SOURCE_FQ = 1
PRICE_SOURCE_USER_PRICE = 2
PRICE_SOURCE_XFER_DLG_VAL = 3
PRICE_SOURCE_SPLIT_REG = 4
PRICE_SOURCE_SPLIT_IMPORT = 5
PRICE_SOURCE_STOCK_SPLIT = 6
PRICE_SOURCE_STOCK_TRANSACTION = 7
PRICE_SOURCE_INVOICE = 8
PRICE_SOURCE_TEMP = 9
PRICE_SOURCE_INVALID = 10
Trait Implementations§
Source§impl Clone for PriceSource
impl Clone for PriceSource
Source§fn clone(&self) -> PriceSource
fn clone(&self) -> PriceSource
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 PriceSource
impl Debug for PriceSource
Source§impl Hash for PriceSource
impl Hash for PriceSource
Source§impl PartialEq for PriceSource
impl PartialEq for PriceSource
impl Copy for PriceSource
impl Eq for PriceSource
impl StructuralPartialEq for PriceSource
Auto Trait Implementations§
impl Freeze for PriceSource
impl RefUnwindSafe for PriceSource
impl Send for PriceSource
impl Sync for PriceSource
impl Unpin for PriceSource
impl UnwindSafe for PriceSource
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