Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1EventDetail[][src]

pub struct GoogleCloudRecommendationengineV1beta1EventDetail {
    pub event_attributes: Option<GoogleCloudRecommendationengineV1beta1FeatureMap>,
    pub experiment_ids: Option<Vec<String>>,
    pub page_view_id: Option<String>,
    pub recommendation_token: Option<String>,
    pub referrer_uri: Option<String>,
    pub uri: Option<String>,
}

User event details shared by all recommendation types.

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

Fields

event_attributes: Option<GoogleCloudRecommendationengineV1beta1FeatureMap>

Optional. Extra user event features to include in the recommendation model. For product recommendation, an example of extra user information is traffic_channel, i.e. how user arrives at the site. Users can arrive at the site by coming to the site directly, or coming through Google search, and etc.

experiment_ids: Option<Vec<String>>

Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).

page_view_id: Option<String>

Optional. A unique id of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple events as the user is browsing the page. The pageViewId property should be kept the same for all these events so that they can be grouped together properly. This pageViewId will be automatically generated if using the JavaScript pixel.

recommendation_token: Option<String>

Optional. Recommendation token included in the recommendation prediction response. This field enables accurate attribution of recommendation model performance. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased item. If user clicks on product K in the recommendation results, pass the PredictResponse.recommendationToken property as a url parameter to product K's page. When recording events on product K's page, log the PredictResponse.recommendation_token to this field. Optional, but highly encouraged for user events that are the result of a recommendation prediction query.

referrer_uri: Option<String>

Optional. The referrer url of the current page. When using the JavaScript pixel, this value is filled in automatically.

uri: Option<String>

Optional. Complete url (window.location.href) of the user's current page. When using the JavaScript pixel, this value is filled in automatically. Maximum length 5KB.

Trait Implementations

impl Clone for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Debug for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Default for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Part for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Serialize for GoogleCloudRecommendationengineV1beta1EventDetail[src]

Auto Trait Implementations

impl RefUnwindSafe for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Send for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Sync for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl Unpin for GoogleCloudRecommendationengineV1beta1EventDetail[src]

impl UnwindSafe for GoogleCloudRecommendationengineV1beta1EventDetail[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.