pub struct PaidTraffic { /* private fields */ }Expand description
Paid traffic label.
Implementations§
Source§impl PaidTraffic
impl PaidTraffic
Sourcepub fn new(
source: impl AsRef<str>,
medium: impl AsRef<str>,
) -> Result<Self, ReferrerValueError>
pub fn new( source: impl AsRef<str>, medium: impl AsRef<str>, ) -> Result<Self, ReferrerValueError>
Creates a paid traffic label.
§Errors
Returns ReferrerValueError::Empty when the source or medium is empty.
Trait Implementations§
Source§impl Clone for PaidTraffic
impl Clone for PaidTraffic
Source§fn clone(&self) -> PaidTraffic
fn clone(&self) -> PaidTraffic
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 PaidTraffic
impl Debug for PaidTraffic
Source§impl PartialEq for PaidTraffic
impl PartialEq for PaidTraffic
Source§fn eq(&self, other: &PaidTraffic) -> bool
fn eq(&self, other: &PaidTraffic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PaidTraffic
impl StructuralPartialEq for PaidTraffic
Auto Trait Implementations§
impl Freeze for PaidTraffic
impl RefUnwindSafe for PaidTraffic
impl Send for PaidTraffic
impl Sync for PaidTraffic
impl Unpin for PaidTraffic
impl UnsafeUnpin for PaidTraffic
impl UnwindSafe for PaidTraffic
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