#[non_exhaustive]pub struct UpdateDatabaseDdlMetadata {
pub database: String,
pub statements: Vec<String>,
pub commit_timestamps: Vec<Timestamp>,
pub throttled: bool,
pub progress: Vec<OperationProgress>,
pub actions: Vec<DdlStatementActionInfo>,
/* private fields */
}
Expand description
Metadata type for the operation returned by UpdateDatabaseDdl.
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.database: String
The database being modified.
statements: Vec<String>
For an update this list contains all the statements. For an individual statement, this list contains only that statement.
commit_timestamps: Vec<Timestamp>
Reports the commit timestamps of all statements that have
succeeded so far, where commit_timestamps[i]
is the commit
timestamp for the statement statements[i]
.
throttled: bool
Output only. When true, indicates that the operation is throttled e.g. due to resource constraints. When resources become available the operation will resume and this field will be false again.
progress: Vec<OperationProgress>
The progress of the
UpdateDatabaseDdl
operations. All DDL statements will have continuously updating progress,
and progress[i]
is the operation progress for statements[i]
. Also,
progress[i]
will have start time and end time populated with commit
timestamp of operation, as well as a progress of 100% once the operation
has completed.
actions: Vec<DdlStatementActionInfo>
The brief action info for the DDL statements.
actions[i]
is the brief info for statements[i]
.
Implementations§
Source§impl UpdateDatabaseDdlMetadata
impl UpdateDatabaseDdlMetadata
pub fn new() -> Self
Sourcepub fn set_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sets the value of database.
Sourcepub fn set_statements<T, V>(self, v: T) -> Self
pub fn set_statements<T, V>(self, v: T) -> Self
Sets the value of statements.
Sourcepub fn set_commit_timestamps<T, V>(self, v: T) -> Self
pub fn set_commit_timestamps<T, V>(self, v: T) -> Self
Sets the value of commit_timestamps.
Sourcepub fn set_throttled<T: Into<bool>>(self, v: T) -> Self
pub fn set_throttled<T: Into<bool>>(self, v: T) -> Self
Sets the value of throttled.
Sourcepub fn set_progress<T, V>(self, v: T) -> Self
pub fn set_progress<T, V>(self, v: T) -> Self
Sets the value of progress.
Sourcepub fn set_actions<T, V>(self, v: T) -> Self
pub fn set_actions<T, V>(self, v: T) -> Self
Sets the value of actions.
Trait Implementations§
Source§impl Clone for UpdateDatabaseDdlMetadata
impl Clone for UpdateDatabaseDdlMetadata
Source§fn clone(&self) -> UpdateDatabaseDdlMetadata
fn clone(&self) -> UpdateDatabaseDdlMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more