#[non_exhaustive]pub struct DdlStatementActionInfo {
pub action: String,
pub entity_type: String,
pub entity_names: Vec<String>,
/* private fields */
}Expand description
Action information extracted from a DDL statement. This proto is used to display the brief info of the DDL statement for the operation UpdateDatabaseDdl.
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.action: StringThe action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
entity_type: StringThe entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
This field can be empty string for some DDL statement,
e.g. for statement “ANALYZE”, entity_type = “”.
entity_names: Vec<String>The entity name(s) being operated on the DDL statement. E.g.
- For statement “CREATE TABLE t1(…)”,
entity_names= [“t1”]. - For statement “GRANT ROLE r1, r2 …”,
entity_names= [“r1”, “r2”]. - For statement “ANALYZE”,
entity_names= [].
Implementations§
Source§impl DdlStatementActionInfo
impl DdlStatementActionInfo
pub fn new() -> Self
Sourcepub fn set_action<T: Into<String>>(self, v: T) -> Self
pub fn set_action<T: Into<String>>(self, v: T) -> Self
Sets the value of action.
Sourcepub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_type.
Sourcepub fn set_entity_names<T, V>(self, v: T) -> Self
pub fn set_entity_names<T, V>(self, v: T) -> Self
Sets the value of entity_names.
Trait Implementations§
Source§impl Clone for DdlStatementActionInfo
impl Clone for DdlStatementActionInfo
Source§fn clone(&self) -> DdlStatementActionInfo
fn clone(&self) -> DdlStatementActionInfo
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 Debug for DdlStatementActionInfo
impl Debug for DdlStatementActionInfo
Source§impl Default for DdlStatementActionInfo
impl Default for DdlStatementActionInfo
Source§fn default() -> DdlStatementActionInfo
fn default() -> DdlStatementActionInfo
Returns the “default value” for a type. Read more
Source§impl Message for DdlStatementActionInfo
impl Message for DdlStatementActionInfo
Source§impl PartialEq for DdlStatementActionInfo
impl PartialEq for DdlStatementActionInfo
impl StructuralPartialEq for DdlStatementActionInfo
Auto Trait Implementations§
impl Freeze for DdlStatementActionInfo
impl RefUnwindSafe for DdlStatementActionInfo
impl Send for DdlStatementActionInfo
impl Sync for DdlStatementActionInfo
impl Unpin for DdlStatementActionInfo
impl UnwindSafe for DdlStatementActionInfo
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