Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1UserInfo
source · [−]pub struct GoogleCloudRecommendationengineV1beta1UserInfo {
pub direct_user_request: Option<bool>,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub user_id: Option<String>,
pub visitor_id: Option<String>,
}
Expand description
Information of end users.
This type is not used in any activity, and only used as part of another schema.
Fields
direct_user_request: Option<bool>
Optional. Indicates if the request is made directly from the end user in which case the user_agent and ip_address fields can be populated from the HTTP request. This should not be set when using the javascript pixel. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events).
ip_address: Option<String>
Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should not be set when using the javascript pixel or if direct_user_request
is set. Used to extract location information for personalization.
user_agent: Option<String>
Optional. User agent as included in the HTTP header. UTF-8 encoded string with a length limit of 1 KiB. This should not be set when using the JavaScript pixel or if directUserRequest
is set.
user_id: Option<String>
Optional. Unique identifier for logged-in user with a length limit of 128 bytes. Required only for logged-in users.
visitor_id: Option<String>
Required. A unique identifier for tracking visitors with a length limit of 128 bytes. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. Maximum length 128 bytes. Cannot be empty.
Trait Implementations
sourceimpl Clone for GoogleCloudRecommendationengineV1beta1UserInfo
impl Clone for GoogleCloudRecommendationengineV1beta1UserInfo
sourcefn clone(&self) -> GoogleCloudRecommendationengineV1beta1UserInfo
fn clone(&self) -> GoogleCloudRecommendationengineV1beta1UserInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleCloudRecommendationengineV1beta1UserInfo
impl Default for GoogleCloudRecommendationengineV1beta1UserInfo
sourcefn default() -> GoogleCloudRecommendationengineV1beta1UserInfo
fn default() -> GoogleCloudRecommendationengineV1beta1UserInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1UserInfo
impl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1UserInfo
sourcefn 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
impl Part for GoogleCloudRecommendationengineV1beta1UserInfo
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudRecommendationengineV1beta1UserInfo
impl Send for GoogleCloudRecommendationengineV1beta1UserInfo
impl Sync for GoogleCloudRecommendationengineV1beta1UserInfo
impl Unpin for GoogleCloudRecommendationengineV1beta1UserInfo
impl UnwindSafe for GoogleCloudRecommendationengineV1beta1UserInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more