Struct google_cloud_googleapis::spanner::v1::ResultSet [−][src]
pub struct ResultSet {
pub metadata: Option<ResultSetMetadata>,
pub rows: Vec<ListValue>,
pub stats: Option<ResultSetStats>,
}Expand description
Results from [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
Fields
metadata: Option<ResultSetMetadata>Metadata about the result set, such as row type information.
rows: Vec<ListValue>Each element in rows is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element
in each row matches the ith field in
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are
encoded based on type as described
[here][google.spanner.v1.TypeCode].
stats: Option<ResultSetStats>Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. DML statements always produce stats containing the number of rows modified, unless executed using the [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. Other fields may or may not be populated, based on the [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResultSet
impl UnwindSafe for ResultSet
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more