Tag

Struct Tag 

Source
pub struct Tag {
Show 25 fields pub account_id: Option<String>, pub blocking_trigger_id: Option<Vec<String>>, pub consent_settings: Option<TagConsentSetting>, pub container_id: Option<String>, pub fingerprint: Option<String>, pub firing_trigger_id: Option<Vec<String>>, pub live_only: Option<bool>, pub monitoring_metadata: Option<Parameter>, pub monitoring_metadata_tag_name_key: Option<String>, pub name: Option<String>, pub notes: Option<String>, pub parameter: Option<Vec<Parameter>>, pub parent_folder_id: Option<String>, pub path: Option<String>, pub paused: Option<bool>, pub priority: Option<Parameter>, pub schedule_end_ms: Option<i64>, pub schedule_start_ms: Option<i64>, pub setup_tag: Option<Vec<SetupTag>>, pub tag_firing_option: Option<String>, pub tag_id: Option<String>, pub tag_manager_url: Option<String>, pub teardown_tag: Option<Vec<TeardownTag>>, pub type_: Option<String>, pub workspace_id: Option<String>,
}
Expand description

Represents a Google Tag Manager Tag.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§account_id: Option<String>

GTM Account ID.

§blocking_trigger_id: Option<Vec<String>>

Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire.

§consent_settings: Option<TagConsentSetting>

Consent settings of a tag.

§container_id: Option<String>

GTM Container ID.

§fingerprint: Option<String>

The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified.

§firing_trigger_id: Option<Vec<String>>

Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false.

§live_only: Option<bool>

If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode).

§monitoring_metadata: Option<Parameter>

A map of key-value pairs of tag metadata to be included in the event data for tag monitoring. Notes: - This parameter must be type MAP. - Each parameter in the map are type TEMPLATE, however cannot contain variable references.

§monitoring_metadata_tag_name_key: Option<String>

If non-empty, then the tag display name will be included in the monitoring metadata map using the key specified.

§name: Option<String>

Tag display name.

§notes: Option<String>

User notes on how to apply this tag in the container.

§parameter: Option<Vec<Parameter>>

The tag’s parameters.

§parent_folder_id: Option<String>

Parent folder id.

§path: Option<String>

GTM Tag’s API relative path.

§paused: Option<bool>

Indicates whether the tag is paused, which prevents the tag from firing.

§priority: Option<Parameter>

User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag’s priority can be a positive or negative value. The default value is 0.

§schedule_end_ms: Option<i64>

The end timestamp in milliseconds to schedule a tag.

§schedule_start_ms: Option<i64>

The start timestamp in milliseconds to schedule a tag.

§setup_tag: Option<Vec<SetupTag>>

The list of setup tags. Currently we only allow one.

§tag_firing_option: Option<String>

Option to fire this tag.

§tag_id: Option<String>

The Tag ID uniquely identifies the GTM Tag.

§tag_manager_url: Option<String>

Auto generated link to the tag manager UI

§teardown_tag: Option<Vec<TeardownTag>>

The list of teardown tags. Currently we only allow one.

§type_: Option<String>

GTM Tag Type.

§workspace_id: Option<String>

GTM Workspace ID.

Trait Implementations§

Source§

impl Clone for Tag

Source§

fn clone(&self) -> Tag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Tag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Tag

Source§

fn default() -> Tag

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Tag

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Tag

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for Tag

Source§

impl ResponseResult for Tag

Auto Trait Implementations§

§

impl Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,