#[non_exhaustive]pub struct DescribeStatementOutput {Show 18 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>>,
}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.
Implementations
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
The cluster identifier.
The error message from the cluster if the SQL statement encountered an error while running.
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.
The date and time (UTC) when the SQL statement was submitted to run.
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
The process identifier from Amazon Redshift.
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.
The SQL statement text.
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.
The size in bytes of the returned results. A -1 indicates the value is null.
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.
The parameters for the SQL statement.
The SQL statements from a multiple statement run.
Creates a new builder-style object to manufacture DescribeStatementOutput
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more
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