pub struct UtmParameters { /* private fields */ }Expand description
UTM parameter set.
Implementations§
Source§impl UtmParameters
impl UtmParameters
Sourcepub const fn new(
source: UtmSource,
medium: UtmMedium,
campaign: UtmCampaign,
) -> Self
pub const fn new( source: UtmSource, medium: UtmMedium, campaign: UtmCampaign, ) -> Self
Creates required UTM parameters.
Sourcepub fn with_content(self, content: UtmContent) -> Self
pub fn with_content(self, content: UtmContent) -> Self
Sets the optional content parameter.
Sourcepub const fn campaign(&self) -> &UtmCampaign
pub const fn campaign(&self) -> &UtmCampaign
Returns the campaign.
Sourcepub fn to_query_string(&self) -> String
pub fn to_query_string(&self) -> String
Formats the parameters as a query string.
Trait Implementations§
Source§impl Clone for UtmParameters
impl Clone for UtmParameters
Source§fn clone(&self) -> UtmParameters
fn clone(&self) -> UtmParameters
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 UtmParameters
impl Debug for UtmParameters
Source§impl PartialEq for UtmParameters
impl PartialEq for UtmParameters
Source§fn eq(&self, other: &UtmParameters) -> bool
fn eq(&self, other: &UtmParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UtmParameters
impl StructuralPartialEq for UtmParameters
Auto Trait Implementations§
impl Freeze for UtmParameters
impl RefUnwindSafe for UtmParameters
impl Send for UtmParameters
impl Sync for UtmParameters
impl Unpin for UtmParameters
impl UnsafeUnpin for UtmParameters
impl UnwindSafe for UtmParameters
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