pub struct ResultSetMetadata {
pub row_type: Option<StructType>,
pub transaction: Option<Transaction>,
pub undeclared_parameters: Option<StructType>,
}
Expand description
Metadata about a ResultSet or PartialResultSet.
This type is not used in any activity, and only used as part of another schema.
Fields§
§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” } }, ]
Trait Implementations§
Source§impl Clone for ResultSetMetadata
impl Clone for ResultSetMetadata
Source§fn clone(&self) -> ResultSetMetadata
fn clone(&self) -> ResultSetMetadata
1.0.0 · 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<'de> Deserialize<'de> for ResultSetMetadata
impl<'de> Deserialize<'de> for ResultSetMetadata
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 ResultSetMetadata
impl Serialize for ResultSetMetadata
impl Part 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 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
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