#[non_exhaustive]pub struct ResultSetMetadata {
pub row_type: Option<StructType>,
pub transaction: Option<Transaction>,
pub undeclared_parameters: Option<StructType>,
/* private fields */
}Expand description
Metadata about a ResultSet or PartialResultSet.
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.row_type: Option<StructType>Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]transaction: Option<Transaction>If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
undeclared_parameters: Option<StructType>A SQL query can be parameterized. In PLAN mode, these parameters can be
undeclared. This indicates the field names and types for those undeclared
parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a
undeclared_parameters value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]Implementations§
Source§impl ResultSetMetadata
impl ResultSetMetadata
Sourcepub fn set_row_type<T>(self, v: T) -> Selfwhere
T: Into<StructType>,
pub fn set_row_type<T>(self, v: T) -> Selfwhere
T: Into<StructType>,
Sets the value of row_type.
Sourcepub fn set_or_clear_row_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructType>,
pub fn set_or_clear_row_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructType>,
Sets or clears the value of row_type.
Sourcepub fn set_transaction<T>(self, v: T) -> Selfwhere
T: Into<Transaction>,
pub fn set_transaction<T>(self, v: T) -> Selfwhere
T: Into<Transaction>,
Sets the value of transaction.
Sourcepub fn set_or_clear_transaction<T>(self, v: Option<T>) -> Selfwhere
T: Into<Transaction>,
pub fn set_or_clear_transaction<T>(self, v: Option<T>) -> Selfwhere
T: Into<Transaction>,
Sets or clears the value of transaction.
Sourcepub fn set_undeclared_parameters<T>(self, v: T) -> Selfwhere
T: Into<StructType>,
pub fn set_undeclared_parameters<T>(self, v: T) -> Selfwhere
T: Into<StructType>,
Sets the value of undeclared_parameters.
Sourcepub fn set_or_clear_undeclared_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructType>,
pub fn set_or_clear_undeclared_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructType>,
Sets or clears the value of undeclared_parameters.
Trait Implementations§
Source§impl Clone for ResultSetMetadata
impl Clone for ResultSetMetadata
Source§fn clone(&self) -> ResultSetMetadata
fn clone(&self) -> ResultSetMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResultSetMetadata
impl Debug for ResultSetMetadata
Source§impl Default for ResultSetMetadata
impl Default for ResultSetMetadata
Source§fn default() -> ResultSetMetadata
fn default() -> ResultSetMetadata
Source§impl Message for ResultSetMetadata
impl Message for ResultSetMetadata
Source§impl PartialEq for ResultSetMetadata
impl PartialEq for ResultSetMetadata
Source§fn eq(&self, other: &ResultSetMetadata) -> bool
fn eq(&self, other: &ResultSetMetadata) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResultSetMetadata
Auto Trait Implementations§
impl !Freeze for ResultSetMetadata
impl RefUnwindSafe for ResultSetMetadata
impl Send for ResultSetMetadata
impl Sync for ResultSetMetadata
impl Unpin for ResultSetMetadata
impl UnsafeUnpin for ResultSetMetadata
impl UnwindSafe for ResultSetMetadata
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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