#[non_exhaustive]pub struct CollectUserEventRequest {
pub parent: String,
pub user_event: String,
pub uri: Option<String>,
pub ets: Option<i64>,
/* private fields */
}user-event-service only.Expand description
Request message for CollectUserEvent method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource name.
If the collect user event action is applied in
DataStore level, the format
is:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.
If the collect user event action is applied in
Location level, for example, the event
with Document across multiple
DataStore, the format is:
projects/{project}/locations/{location}.
user_event: StringRequired. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
uri: Option<String>The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests.
ets: Option<i64>The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
Implementations§
Source§impl CollectUserEventRequest
impl CollectUserEventRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_user_event<T: Into<String>>(self, v: T) -> Self
pub fn set_user_event<T: Into<String>>(self, v: T) -> Self
Sets the value of user_event.
§Example
let x = CollectUserEventRequest::new().set_user_event("example");Sourcepub fn set_or_clear_uri<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_uri<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CollectUserEventRequest
impl Clone for CollectUserEventRequest
Source§fn clone(&self) -> CollectUserEventRequest
fn clone(&self) -> CollectUserEventRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more