pub struct Touchpoint { /* private fields */ }Expand description
Attribution touchpoint primitive.
Implementations§
Source§impl Touchpoint
impl Touchpoint
Sourcepub const fn new(source: AttributionSource, medium: AttributionMedium) -> Self
pub const fn new(source: AttributionSource, medium: AttributionMedium) -> Self
Creates an attribution touchpoint.
Sourcepub fn with_conversion_label(self, label: ConversionLabel) -> Self
pub fn with_conversion_label(self, label: ConversionLabel) -> Self
Sets the conversion label.
Sourcepub const fn with_window(self, window: AttributionWindow) -> Self
pub const fn with_window(self, window: AttributionWindow) -> Self
Sets the attribution window.
Sourcepub const fn with_credit(self, credit: AttributionCredit) -> Self
pub const fn with_credit(self, credit: AttributionCredit) -> Self
Sets the attribution credit.
Sourcepub fn with_model_kind(self, model_kind: AttributionModelKind) -> Self
pub fn with_model_kind(self, model_kind: AttributionModelKind) -> Self
Sets the model-kind label.
Sourcepub const fn source(&self) -> &AttributionSource
pub const fn source(&self) -> &AttributionSource
Returns the attribution source.
Sourcepub const fn medium(&self) -> &AttributionMedium
pub const fn medium(&self) -> &AttributionMedium
Returns the attribution medium.
Sourcepub const fn credit(&self) -> Option<AttributionCredit>
pub const fn credit(&self) -> Option<AttributionCredit>
Returns attribution credit.
Trait Implementations§
Source§impl Clone for Touchpoint
impl Clone for Touchpoint
Source§fn clone(&self) -> Touchpoint
fn clone(&self) -> Touchpoint
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 Touchpoint
impl Debug for Touchpoint
Source§impl PartialEq for Touchpoint
impl PartialEq for Touchpoint
Source§fn eq(&self, other: &Touchpoint) -> bool
fn eq(&self, other: &Touchpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Touchpoint
Auto Trait Implementations§
impl Freeze for Touchpoint
impl RefUnwindSafe for Touchpoint
impl Send for Touchpoint
impl Sync for Touchpoint
impl Unpin for Touchpoint
impl UnsafeUnpin for Touchpoint
impl UnwindSafe for Touchpoint
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