pub struct GaTrackingSettingBuilder { /* private fields */ }
Expand description
Builder pattern for constructing GaTrackingSetting
. Make sure you call build()
when done to
consume this and return the underlying GaTrackingSetting
, Construct with default()
.
Implementations§
Source§impl GaTrackingSettingBuilder
impl GaTrackingSettingBuilder
Sourcepub fn utm_source(self, source: impl Into<String>) -> Self
pub fn utm_source(self, source: impl Into<String>) -> Self
Sets the GA utm_source for the GaTrackingSetting
§Examples
let builder = GaTrackingSettingBuilder::default()
.utm_source("source");
Sourcepub fn utm_medium(self, medium: impl Into<String>) -> Self
pub fn utm_medium(self, medium: impl Into<String>) -> Self
Sets the GA utm_medium for the GaTrackingSetting
§Examples
let builder = GaTrackingSettingBuilder::default()
.utm_medium("medium");
Sourcepub fn utm_term(self, term: impl Into<String>) -> Self
pub fn utm_term(self, term: impl Into<String>) -> Self
Sets the GA utm_term for the GaTrackingSetting
§Examples
let builder = GaTrackingSettingBuilder::default()
.utm_term("term");
Sourcepub fn utm_content(self, content: impl Into<String>) -> Self
pub fn utm_content(self, content: impl Into<String>) -> Self
Sets the GA utm_content for the GaTrackingSetting
§Examples
let builder = GaTrackingSettingBuilder::default()
.utm_content("content");
Sourcepub fn utm_campaign(self, campaign: impl Into<String>) -> Self
pub fn utm_campaign(self, campaign: impl Into<String>) -> Self
Sets the GA utm_campaign for the GaTrackingSetting
§Examples
let builder = GaTrackingSettingBuilder::default()
.utm_campaign("campaign");
Sourcepub fn build(self) -> GaTrackingSetting
pub fn build(self) -> GaTrackingSetting
Consumes the builder and returns the underlying GaTrackingSetting
§Examples
let setting = GaTrackingSettingBuilder::default().build();
Trait Implementations§
Source§impl Default for GaTrackingSettingBuilder
impl Default for GaTrackingSettingBuilder
Source§fn default() -> GaTrackingSettingBuilder
fn default() -> GaTrackingSettingBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GaTrackingSettingBuilder
impl RefUnwindSafe for GaTrackingSettingBuilder
impl Send for GaTrackingSettingBuilder
impl Sync for GaTrackingSettingBuilder
impl Unpin for GaTrackingSettingBuilder
impl UnwindSafe for GaTrackingSettingBuilder
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