pub struct CompetitorPriceBenchmark { /* private fields */ }Implementations§
Source§impl CompetitorPriceBenchmark
impl CompetitorPriceBenchmark
pub fn try_new( sku: Sku, currency: Currency, offers: Vec<CompetitorOffer>, best_offer: CompetitorOffer, ) -> DomainResult<Self>
pub const fn best_offer(&self) -> &CompetitorOffer
Trait Implementations§
Source§impl Clone for CompetitorPriceBenchmark
impl Clone for CompetitorPriceBenchmark
Source§fn clone(&self) -> CompetitorPriceBenchmark
fn clone(&self) -> CompetitorPriceBenchmark
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompetitorPriceBenchmark
impl Debug for CompetitorPriceBenchmark
Source§impl PartialEq for CompetitorPriceBenchmark
impl PartialEq for CompetitorPriceBenchmark
Source§fn eq(&self, other: &CompetitorPriceBenchmark) -> bool
fn eq(&self, other: &CompetitorPriceBenchmark) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompetitorPriceBenchmark
impl StructuralPartialEq for CompetitorPriceBenchmark
Auto Trait Implementations§
impl Freeze for CompetitorPriceBenchmark
impl RefUnwindSafe for CompetitorPriceBenchmark
impl Send for CompetitorPriceBenchmark
impl Sync for CompetitorPriceBenchmark
impl Unpin for CompetitorPriceBenchmark
impl UnsafeUnpin for CompetitorPriceBenchmark
impl UnwindSafe for CompetitorPriceBenchmark
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