pub enum PriceSource {
Builtin,
Config,
Unknown,
}Expand description
Where the pricing data came from.
Variants§
Builtin
Hardcoded in the binary.
Config
Loaded from a user config file override.
Unknown
Model not found – all costs are zero.
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 PartialEq for PriceSource
impl PartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more