pub struct QueryResponse {
pub kind: Option<String>,
pub rows: Option<Vec<Vec<String>>>,
pub errors: Option<Errors>,
pub column_headers: Option<Vec<ResultTableColumnHeader>>,
}
Expand description
Response message for TargetedQueriesService.Query.
§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).
- query reports (response)
Fields§
§kind: Option<String>
This value specifies the type of data included in the API response.
For the query method, the kind property value will be
youtubeAnalytics#resultTable
.
rows: Option<Vec<Vec<String>>>
The list contains all rows of the result table. Each item in the list is
an array that contains comma-delimited data corresponding to a single row
of data. The order of the comma-delimited data fields will match the
order of the columns listed in the columnHeaders
field.
If no data is available for the given query, the rows
element will be
omitted from the response.
The response for a query with the day
dimension will not contain rows for
the most recent days.
errors: Option<Errors>
When set, indicates that the operation failed.
column_headers: Option<Vec<ResultTableColumnHeader>>
This value specifies information about the data returned in the rows
fields. Each item in the columnHeaders
list identifies a field returned
in the rows
value, which contains a list of comma-delimited data. The
columnHeaders
list will begin with the dimensions specified in the API
request, which will be followed by the metrics specified in the API
request. The order of both dimensions and metrics will match the ordering
in the API request. For example, if the API request contains the parameters
dimensions=ageGroup,gender&metrics=viewerPercentage
, the API response
will return columns in this order: ageGroup
, gender
,
viewerPercentage
.
Trait Implementations§
Source§impl Clone for QueryResponse
impl Clone for QueryResponse
Source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for QueryResponse
impl Debug for QueryResponse
Source§impl Default for QueryResponse
impl Default for QueryResponse
Source§fn default() -> QueryResponse
fn default() -> QueryResponse
Source§impl<'de> Deserialize<'de> for QueryResponse
impl<'de> Deserialize<'de> for QueryResponse
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>,
Source§impl Serialize for QueryResponse
impl Serialize for QueryResponse
impl ResponseResult for QueryResponse
Auto Trait Implementations§
impl Freeze for QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
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> 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