#[non_exhaustive]pub struct SqlInstancesExecuteSqlResponse {
pub messages: Vec<Message>,
pub metadata: Option<Metadata>,
pub results: Vec<QueryResult>,
pub status: Option<Status>,
/* private fields */
}Expand description
Execute SQL statements response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.messages: Vec<Message>A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query, SHOW WARNINGS must
be executed after each statement.
metadata: Option<Metadata>The additional metadata information regarding the execution of the SQL statements.
results: Vec<QueryResult>The list of results after executing all the SQL statements.
status: Option<Status>Contains the error from the database if the SQL execution failed.
Implementations§
Source§impl SqlInstancesExecuteSqlResponse
impl SqlInstancesExecuteSqlResponse
pub fn new() -> Self
Sourcepub fn set_messages<T, V>(self, v: T) -> Self
pub fn set_messages<T, V>(self, v: T) -> Self
Sourcepub fn set_metadata<T>(self, v: T) -> Self
pub fn set_metadata<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
Sourcepub fn set_results<T, V>(self, v: T) -> Self
pub fn set_results<T, V>(self, v: T) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for SqlInstancesExecuteSqlResponse
impl Clone for SqlInstancesExecuteSqlResponse
Source§fn clone(&self) -> SqlInstancesExecuteSqlResponse
fn clone(&self) -> SqlInstancesExecuteSqlResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SqlInstancesExecuteSqlResponse
impl Default for SqlInstancesExecuteSqlResponse
Source§fn default() -> SqlInstancesExecuteSqlResponse
fn default() -> SqlInstancesExecuteSqlResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlInstancesExecuteSqlResponse
impl PartialEq for SqlInstancesExecuteSqlResponse
Source§fn eq(&self, other: &SqlInstancesExecuteSqlResponse) -> bool
fn eq(&self, other: &SqlInstancesExecuteSqlResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SqlInstancesExecuteSqlResponse
Auto Trait Implementations§
impl Freeze for SqlInstancesExecuteSqlResponse
impl RefUnwindSafe for SqlInstancesExecuteSqlResponse
impl Send for SqlInstancesExecuteSqlResponse
impl Sync for SqlInstancesExecuteSqlResponse
impl Unpin for SqlInstancesExecuteSqlResponse
impl UnwindSafe for SqlInstancesExecuteSqlResponse
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
Mutably borrows from an owned value. Read more