Struct google_api_proto::google::ads::googleads::v16::common::TagSnippet
source · pub struct TagSnippet {
pub type: i32,
pub page_format: i32,
pub global_site_tag: Option<String>,
pub event_snippet: Option<String>,
}
Expand description
The site tag and event snippet pair for a TrackingCodeType.
Fields§
§type: i32
The type of the generated tag snippets for tracking conversions.
page_format: i32
The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
global_site_tag: Option<String>
The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
event_snippet: Option<String>
The event snippet that works with the site tag to track actions that should be counted as conversions.
Implementations§
source§impl TagSnippet
impl TagSnippet
sourcepub fn type(&self) -> TrackingCodeType
pub fn type(&self) -> TrackingCodeType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: TrackingCodeType)
pub fn set_type(&mut self, value: TrackingCodeType)
Sets type
to the provided enum value.
sourcepub fn page_format(&self) -> TrackingCodePageFormat
pub fn page_format(&self) -> TrackingCodePageFormat
Returns the enum value of page_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_page_format(&mut self, value: TrackingCodePageFormat)
pub fn set_page_format(&mut self, value: TrackingCodePageFormat)
Sets page_format
to the provided enum value.
sourcepub fn global_site_tag(&self) -> &str
pub fn global_site_tag(&self) -> &str
Returns the value of global_site_tag
, or the default value if global_site_tag
is unset.
sourcepub fn event_snippet(&self) -> &str
pub fn event_snippet(&self) -> &str
Returns the value of event_snippet
, or the default value if event_snippet
is unset.
Trait Implementations§
source§impl Clone for TagSnippet
impl Clone for TagSnippet
source§fn clone(&self) -> TagSnippet
fn clone(&self) -> TagSnippet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TagSnippet
impl Debug for TagSnippet
source§impl Default for TagSnippet
impl Default for TagSnippet
source§impl Message for TagSnippet
impl Message for TagSnippet
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for TagSnippet
impl PartialEq for TagSnippet
source§fn eq(&self, other: &TagSnippet) -> bool
fn eq(&self, other: &TagSnippet) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TagSnippet
Auto Trait Implementations§
impl Freeze for TagSnippet
impl RefUnwindSafe for TagSnippet
impl Send for TagSnippet
impl Sync for TagSnippet
impl Unpin for TagSnippet
impl UnwindSafe for TagSnippet
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request