pub struct SearchUserActivityRequest {
pub activity_types: Option<Vec<String>>,
pub date_range: Option<DateRange>,
pub page_size: Option<i32>,
pub page_token: Option<String>,
pub user: Option<User>,
pub view_id: Option<String>,
}
Expand description
The request to fetch User Report from Reporting API userActivity:get
call.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- search user activity (request)
Fields§
§activity_types: Option<Vec<String>>
Set of all activity types being requested. Only acvities matching these types will be returned in the response. If empty, all activies will be returned.
date_range: Option<DateRange>
Date range for which to retrieve the user activity. If a date range is not provided, the default date range is (startDate: current date - 7 days, endDate: current date - 1 day).
page_size: Option<i32>
Page size is for paging and specifies the maximum number of returned rows. Page size should be > 0. If the value is 0 or if the field isn’t specified, the request returns the default of 1000 rows per page.
page_token: Option<String>
A continuation token to get the next page of the results. Adding this to the request will return the rows after the pageToken. The pageToken should be the value returned in the nextPageToken parameter in the response to the SearchUserActivityRequest request.
user: Option<User>
Required. Unique user Id to query for. Every SearchUserActivityRequest must contain this field.
view_id: Option<String>
Required. The Analytics view ID from which to retrieve data. Every SearchUserActivityRequest must contain the viewId
.
Trait Implementations§
Source§impl Clone for SearchUserActivityRequest
impl Clone for SearchUserActivityRequest
Source§fn clone(&self) -> SearchUserActivityRequest
fn clone(&self) -> SearchUserActivityRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SearchUserActivityRequest
impl Debug for SearchUserActivityRequest
Source§impl Default for SearchUserActivityRequest
impl Default for SearchUserActivityRequest
Source§fn default() -> SearchUserActivityRequest
fn default() -> SearchUserActivityRequest
Source§impl<'de> Deserialize<'de> for SearchUserActivityRequest
impl<'de> Deserialize<'de> for SearchUserActivityRequest
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>,
impl RequestValue for SearchUserActivityRequest
Auto Trait Implementations§
impl Freeze for SearchUserActivityRequest
impl RefUnwindSafe for SearchUserActivityRequest
impl Send for SearchUserActivityRequest
impl Sync for SearchUserActivityRequest
impl Unpin for SearchUserActivityRequest
impl UnwindSafe for SearchUserActivityRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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