Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1FeatureMap[][src]

pub struct GoogleCloudRecommendationengineV1beta1FeatureMap {
    pub categorical_features: Option<HashMap<String, GoogleCloudRecommendationengineV1beta1FeatureMapStringList>>,
    pub numerical_features: Option<HashMap<String, GoogleCloudRecommendationengineV1beta1FeatureMapFloatList>>,
}

FeatureMap represents extra features that customers want to include in the recommendation model for catalogs/user events as categorical/numerical features.

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

Fields

categorical_features: Option<HashMap<String, GoogleCloudRecommendationengineV1beta1FeatureMapStringList>>

Categorical features that can take on one of a limited number of possible values. Some examples would be the brand/maker of a product, or country of a customer. Feature names and values must be UTF-8 encoded strings. For example: { "colors": {"value": ["yellow", "green"]}, "sizes": {"value":["S", "M"]}

numerical_features: Option<HashMap<String, GoogleCloudRecommendationengineV1beta1FeatureMapFloatList>>

Numerical features. Some examples would be the height/weight of a product, or age of a customer. Feature names must be UTF-8 encoded strings. For example: { "lengths_cm": {"value":[2.3, 15.4]}, "heights_cm": {"value":[8.1, 6.4]} }

Trait Implementations

impl Clone for GoogleCloudRecommendationengineV1beta1FeatureMap[src]

impl Debug for GoogleCloudRecommendationengineV1beta1FeatureMap[src]

impl Default for GoogleCloudRecommendationengineV1beta1FeatureMap[src]

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

impl Part for GoogleCloudRecommendationengineV1beta1FeatureMap[src]

impl Serialize for GoogleCloudRecommendationengineV1beta1FeatureMap[src]

Auto Trait Implementations

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.