pub struct GetQueryResultsResponse {
pub kind: String,
pub etag: String,
pub schema: Option<TableSchema>,
pub job_reference: JobReference,
pub total_rows: i64,
pub page_token: Option<String>,
pub rows: Option<Vec<Tuple>>,
pub total_bytes_processed: Option<i64>,
pub job_complete: bool,
pub errors: Option<Vec<ErrorProto>>,
pub cache_hit: Option<bool>,
pub num_dml_affected_rows: Option<i64>,
}Fields§
§kind: StringThe resource type.
etag: StringA hash of this response.
schema: Option<TableSchema>The schema of the results. Present only when the query completes successfully.
job_reference: JobReferenceReference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case jobs.getQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (jobs.getQueryResults).
total_rows: i64The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.
page_token: Option<String>A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the jobs.getQueryResults method. For more information, see Paging through table data.
rows: Option<Vec<Tuple>>An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call jobs.getQueryResults and specify the jobReference returned above.
total_bytes_processed: Option<i64>The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.
job_complete: boolWhether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.
errors: Option<Vec<ErrorProto>>Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see Error messages.
cache_hit: Option<bool>Whether the query result was fetched from the query cache.
num_dml_affected_rows: Option<i64>Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
Trait Implementations§
Source§impl Clone for GetQueryResultsResponse
impl Clone for GetQueryResultsResponse
Source§fn clone(&self) -> GetQueryResultsResponse
fn clone(&self) -> GetQueryResultsResponse
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetQueryResultsResponse
impl Debug for GetQueryResultsResponse
Source§impl Default for GetQueryResultsResponse
impl Default for GetQueryResultsResponse
Source§fn default() -> GetQueryResultsResponse
fn default() -> GetQueryResultsResponse
Source§impl<'de> Deserialize<'de> for GetQueryResultsResponse
impl<'de> Deserialize<'de> for GetQueryResultsResponse
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 PartialEq for GetQueryResultsResponse
impl PartialEq for GetQueryResultsResponse
Source§impl Serialize for GetQueryResultsResponse
impl Serialize for GetQueryResultsResponse
impl StructuralPartialEq for GetQueryResultsResponse
Auto Trait Implementations§
impl Freeze for GetQueryResultsResponse
impl RefUnwindSafe for GetQueryResultsResponse
impl Send for GetQueryResultsResponse
impl Sync for GetQueryResultsResponse
impl Unpin for GetQueryResultsResponse
impl UnwindSafe for GetQueryResultsResponse
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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> 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