Struct Touchpoint
pub struct Touchpoint { /* private fields */ }Expand description
Attribution touchpoint primitive.
Implementations§
§impl Touchpoint
impl Touchpoint
pub const fn new(
source: AttributionSource,
medium: AttributionMedium,
) -> Touchpoint
pub const fn new( source: AttributionSource, medium: AttributionMedium, ) -> Touchpoint
Creates an attribution touchpoint.
pub fn with_conversion_label(self, label: ConversionLabel) -> Touchpoint
pub fn with_conversion_label(self, label: ConversionLabel) -> Touchpoint
Sets the conversion label.
pub const fn with_window(self, window: AttributionWindow) -> Touchpoint
pub const fn with_window(self, window: AttributionWindow) -> Touchpoint
Sets the attribution window.
pub const fn with_credit(self, credit: AttributionCredit) -> Touchpoint
pub const fn with_credit(self, credit: AttributionCredit) -> Touchpoint
Sets the attribution credit.
pub fn with_model_kind(self, model_kind: AttributionModelKind) -> Touchpoint
pub fn with_model_kind(self, model_kind: AttributionModelKind) -> Touchpoint
Sets the model-kind label.
pub const fn source(&self) -> &AttributionSource
pub const fn source(&self) -> &AttributionSource
Returns the attribution source.
pub const fn medium(&self) -> &AttributionMedium
pub const fn medium(&self) -> &AttributionMedium
Returns the attribution medium.
pub const fn credit(&self) -> Option<AttributionCredit>
pub const fn credit(&self) -> Option<AttributionCredit>
Returns attribution credit.
Trait Implementations§
§impl Clone for Touchpoint
impl Clone for Touchpoint
§fn clone(&self) -> Touchpoint
fn clone(&self) -> Touchpoint
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 more§impl Debug for Touchpoint
impl Debug for Touchpoint
§impl PartialEq for Touchpoint
impl PartialEq for Touchpoint
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