pub struct FilterExpression {
    pub case_sensitive: Option<bool>,
    pub expression_value: Option<String>,
    pub field: Option<String>,
    pub field_index: Option<i32>,
    pub kind: Option<String>,
    pub match_type: Option<String>,
}
Expand description

JSON template for an Analytics filter expression.

This type is not used in any activity, and only used as part of another schema.

Fields§

§case_sensitive: Option<bool>

Determines if the filter is case sensitive.

§expression_value: Option<String>

Filter expression value

§field: Option<String>

Field to filter. Possible values:

  • Content and Traffic
  • PAGE_REQUEST_URI,
  • PAGE_HOSTNAME,
  • PAGE_TITLE,
  • REFERRAL,
  • COST_DATA_URI (Campaign target URL),
  • HIT_TYPE,
  • INTERNAL_SEARCH_TERM,
  • INTERNAL_SEARCH_TYPE,
  • SOURCE_PROPERTY_TRACKING_ID,
  • Campaign or AdGroup
  • CAMPAIGN_SOURCE,
  • CAMPAIGN_MEDIUM,
  • CAMPAIGN_NAME,
  • CAMPAIGN_AD_GROUP,
  • CAMPAIGN_TERM,
  • CAMPAIGN_CONTENT,
  • CAMPAIGN_CODE,
  • CAMPAIGN_REFERRAL_PATH,
  • E-Commerce
  • TRANSACTION_COUNTRY,
  • TRANSACTION_REGION,
  • TRANSACTION_CITY,
  • TRANSACTION_AFFILIATION (Store or order location),
  • ITEM_NAME,
  • ITEM_CODE,
  • ITEM_VARIATION,
  • TRANSACTION_ID,
  • TRANSACTION_CURRENCY_CODE,
  • PRODUCT_ACTION_TYPE,
  • Audience/Users
  • BROWSER,
  • BROWSER_VERSION,
  • BROWSER_SIZE,
  • PLATFORM,
  • PLATFORM_VERSION,
  • LANGUAGE,
  • SCREEN_RESOLUTION,
  • SCREEN_COLORS,
  • JAVA_ENABLED (Boolean Field),
  • FLASH_VERSION,
  • GEO_SPEED (Connection speed),
  • VISITOR_TYPE,
  • GEO_ORGANIZATION (ISP organization),
  • GEO_DOMAIN,
  • GEO_IP_ADDRESS,
  • GEO_IP_VERSION,
  • Location
  • GEO_COUNTRY,
  • GEO_REGION,
  • GEO_CITY,
  • Event
  • EVENT_CATEGORY,
  • EVENT_ACTION,
  • EVENT_LABEL,
  • Other
  • CUSTOM_FIELD_1,
  • CUSTOM_FIELD_2,
  • USER_DEFINED_VALUE,
  • Application
  • APP_ID,
  • APP_INSTALLER_ID,
  • APP_NAME,
  • APP_VERSION,
  • SCREEN,
  • IS_APP (Boolean Field),
  • IS_FATAL_EXCEPTION (Boolean Field),
  • EXCEPTION_DESCRIPTION,
  • Mobile device
  • IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
  • IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
  • DEVICE_CATEGORY,
  • MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
  • MOBILE_HAS_NFC_SUPPORT (Boolean Field),
  • MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
  • MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
  • MOBILE_BRAND_NAME,
  • MOBILE_MODEL_NAME,
  • MOBILE_MARKETING_NAME,
  • MOBILE_POINTING_METHOD,
  • Social
  • SOCIAL_NETWORK,
  • SOCIAL_ACTION,
  • SOCIAL_ACTION_TARGET,
  • Custom dimension
  • CUSTOM_DIMENSION (See accompanying field index),
§field_index: Option<i32>

The Index of the custom dimension. Set only if the field is a is CUSTOM_DIMENSION.

§kind: Option<String>

Kind value for filter expression

§match_type: Option<String>

Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all other filters must use MATCHES.

Trait Implementations§

source§

impl Clone for FilterExpression

source§

fn clone(&self) -> FilterExpression

Returns a copy 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 FilterExpression

source§

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

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

impl Default for FilterExpression

source§

fn default() -> FilterExpression

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

impl<'de> Deserialize<'de> for FilterExpression

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 FilterExpression

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 Part for FilterExpression

Auto Trait Implementations§

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> 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,

§

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>,

§

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>,

§

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>,