#[non_exhaustive]pub struct DescribeStatementOutput {Show 19 fields
pub id: Option<String>,
pub secret_arn: Option<String>,
pub db_user: Option<String>,
pub database: Option<String>,
pub cluster_identifier: Option<String>,
pub duration: i64,
pub error: Option<String>,
pub status: Option<StatusString>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub redshift_pid: i64,
pub has_result_set: Option<bool>,
pub query_string: Option<String>,
pub result_rows: i64,
pub result_size: i64,
pub redshift_query_id: i64,
pub query_parameters: Option<Vec<SqlParameter>>,
pub sub_statements: Option<Vec<SubStatementData>>,
pub workgroup_name: Option<String>,
}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.id: Option<String>The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
secret_arn: Option<String>The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
db_user: Option<String>The database user name.
database: Option<String>The name of the database.
cluster_identifier: Option<String>The cluster identifier.
duration: i64The amount of time in nanoseconds that the statement ran.
error: Option<String>The error message from the cluster if the SQL statement encountered an error while running.
status: Option<StatusString>The status of the SQL statement being described. Status values are defined as follows:
-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
created_at: Option<DateTime>The date and time (UTC) when the SQL statement was submitted to run.
updated_at: Option<DateTime>The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
redshift_pid: i64The process identifier from Amazon Redshift.
has_result_set: Option<bool>A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
query_string: Option<String>The SQL statement text.
result_rows: i64Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null.
result_size: i64The size in bytes of the returned results. A -1 indicates the value is null.
redshift_query_id: i64The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.
query_parameters: Option<Vec<SqlParameter>>The parameters for the SQL statement.
sub_statements: Option<Vec<SubStatementData>>The SQL statements from a multiple statement run.
workgroup_name: Option<String>The serverless workgroup name.
Implementations
sourceimpl DescribeStatementOutput
impl DescribeStatementOutput
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
sourcepub fn secret_arn(&self) -> Option<&str>
pub fn secret_arn(&self) -> Option<&str>
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
sourcepub fn cluster_identifier(&self) -> Option<&str>
pub fn cluster_identifier(&self) -> Option<&str>
The cluster identifier.
sourcepub fn error(&self) -> Option<&str>
pub fn error(&self) -> Option<&str>
The error message from the cluster if the SQL statement encountered an error while running.
sourcepub fn status(&self) -> Option<&StatusString>
pub fn status(&self) -> Option<&StatusString>
The status of the SQL statement being described. Status values are defined as follows:
-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time (UTC) when the SQL statement was submitted to run.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
sourcepub fn redshift_pid(&self) -> i64
pub fn redshift_pid(&self) -> i64
The process identifier from Amazon Redshift.
sourcepub fn has_result_set(&self) -> Option<bool>
pub fn has_result_set(&self) -> Option<bool>
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The SQL statement text.
sourcepub fn result_rows(&self) -> i64
pub fn result_rows(&self) -> i64
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null.
sourcepub fn result_size(&self) -> i64
pub fn result_size(&self) -> i64
The size in bytes of the returned results. A -1 indicates the value is null.
sourcepub fn redshift_query_id(&self) -> i64
pub fn redshift_query_id(&self) -> i64
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.
sourcepub fn query_parameters(&self) -> Option<&[SqlParameter]>
pub fn query_parameters(&self) -> Option<&[SqlParameter]>
The parameters for the SQL statement.
sourcepub fn sub_statements(&self) -> Option<&[SubStatementData]>
pub fn sub_statements(&self) -> Option<&[SubStatementData]>
The SQL statements from a multiple statement run.
sourcepub fn workgroup_name(&self) -> Option<&str>
pub fn workgroup_name(&self) -> Option<&str>
The serverless workgroup name.
sourceimpl DescribeStatementOutput
impl DescribeStatementOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeStatementOutput
Trait Implementations
sourceimpl Clone for DescribeStatementOutput
impl Clone for DescribeStatementOutput
sourcefn clone(&self) -> DescribeStatementOutput
fn clone(&self) -> DescribeStatementOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DescribeStatementOutput
impl Debug for DescribeStatementOutput
sourceimpl PartialEq<DescribeStatementOutput> for DescribeStatementOutput
impl PartialEq<DescribeStatementOutput> for DescribeStatementOutput
sourcefn eq(&self, other: &DescribeStatementOutput) -> bool
fn eq(&self, other: &DescribeStatementOutput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DescribeStatementOutput) -> bool
fn ne(&self, other: &DescribeStatementOutput) -> bool
This method tests for !=.
impl StructuralPartialEq for DescribeStatementOutput
Auto Trait Implementations
impl RefUnwindSafe for DescribeStatementOutput
impl Send for DescribeStatementOutput
impl Sync for DescribeStatementOutput
impl Unpin for DescribeStatementOutput
impl UnwindSafe for DescribeStatementOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more