Struct google_api_proto::google::apps::drive::activity::v2::QueryDriveActivityRequest
source · pub struct QueryDriveActivityRequest {
pub consolidation_strategy: Option<ConsolidationStrategy>,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub key: Option<Key>,
}
Expand description
The request message for querying Drive activity.
Fields§
§consolidation_strategy: Option<ConsolidationStrategy>
Details on how to consolidate related actions that make up the activity. If not set, then related actions aren’t consolidated.
page_size: i32
The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.
page_token: String
The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results is returned.
filter: String
The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional “AND”, where each expression is of the form “field operator value”.
Supported fields:
-
time
: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in target=“_blank”>RFC 3339 format. Examples:time > 1452409200000 AND time <= 1492812924310
time >= "2016-01-10T01:02:03-05:00"
-
detail.action_detail_case
: Uses the “has” operator (:) and either a singular value or a list of allowed action types enclosed in parentheses, separated by a space. To exclude a result from the response, prepend a hyphen (-
) to the beginning of the filter string. Examples:detail.action_detail_case:RENAME
detail.action_detail_case:(CREATE RESTORE)
-detail.action_detail_case:MOVE
key: Option<Key>
The primary criteria in the query. The default is
ancestorName = items/root
, if no key is specified.
Trait Implementations§
source§impl Clone for QueryDriveActivityRequest
impl Clone for QueryDriveActivityRequest
source§fn clone(&self) -> QueryDriveActivityRequest
fn clone(&self) -> QueryDriveActivityRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryDriveActivityRequest
impl Debug for QueryDriveActivityRequest
source§impl Default for QueryDriveActivityRequest
impl Default for QueryDriveActivityRequest
source§impl Message for QueryDriveActivityRequest
impl Message for QueryDriveActivityRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for QueryDriveActivityRequest
impl PartialEq for QueryDriveActivityRequest
source§fn eq(&self, other: &QueryDriveActivityRequest) -> bool
fn eq(&self, other: &QueryDriveActivityRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryDriveActivityRequest
Auto Trait Implementations§
impl Freeze for QueryDriveActivityRequest
impl RefUnwindSafe for QueryDriveActivityRequest
impl Send for QueryDriveActivityRequest
impl Sync for QueryDriveActivityRequest
impl Unpin for QueryDriveActivityRequest
impl UnwindSafe for QueryDriveActivityRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request