pub struct AttributionWindow { /* private fields */ }Expand description
Attribution window represented in days.
Implementations§
Source§impl AttributionWindow
impl AttributionWindow
Sourcepub const fn from_days(days: u16) -> Result<Self, AttributionValueError>
pub const fn from_days(days: u16) -> Result<Self, AttributionValueError>
Creates an attribution window.
§Errors
Returns AttributionValueError::InvalidWindow when days is zero.
Trait Implementations§
Source§impl Clone for AttributionWindow
impl Clone for AttributionWindow
Source§fn clone(&self) -> AttributionWindow
fn clone(&self) -> AttributionWindow
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 AttributionWindow
impl Debug for AttributionWindow
Source§impl Hash for AttributionWindow
impl Hash for AttributionWindow
Source§impl Ord for AttributionWindow
impl Ord for AttributionWindow
Source§fn cmp(&self, other: &AttributionWindow) -> Ordering
fn cmp(&self, other: &AttributionWindow) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributionWindow
impl PartialEq for AttributionWindow
Source§fn eq(&self, other: &AttributionWindow) -> bool
fn eq(&self, other: &AttributionWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AttributionWindow
impl PartialOrd for AttributionWindow
impl Copy for AttributionWindow
impl Eq for AttributionWindow
impl StructuralPartialEq for AttributionWindow
Auto Trait Implementations§
impl Freeze for AttributionWindow
impl RefUnwindSafe for AttributionWindow
impl Send for AttributionWindow
impl Sync for AttributionWindow
impl Unpin for AttributionWindow
impl UnsafeUnpin for AttributionWindow
impl UnwindSafe for AttributionWindow
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