Struct google_analytics3::api::FilterExpression
source · 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
impl Clone for FilterExpression
source§fn clone(&self) -> FilterExpression
fn clone(&self) -> FilterExpression
Returns a copy of the value. Read more
1.0.0 · 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 FilterExpression
impl Debug for FilterExpression
source§impl Default for FilterExpression
impl Default for FilterExpression
source§fn default() -> FilterExpression
fn default() -> FilterExpression
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FilterExpression
impl<'de> Deserialize<'de> for FilterExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl Serialize for FilterExpression
impl Part for FilterExpression
Auto Trait Implementations§
impl Freeze for FilterExpression
impl RefUnwindSafe for FilterExpression
impl Send for FilterExpression
impl Sync for FilterExpression
impl Unpin for FilterExpression
impl UnwindSafe for FilterExpression
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more