#[non_exhaustive]pub struct SetTablePrimaryKey {
pub primary_key_columns: Vec<String>,
pub primary_key: String,
/* private fields */
}Expand description
Options to configure rule type SetTablePrimaryKey. The rule is used to specify the columns and name to configure/alter the primary key of a table.
The rule filter field can refer to one entity.
The rule scope can be one of: Table.
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.primary_key_columns: Vec<String>Required. List of column names for the primary key
primary_key: StringOptional. Name for the primary key
Implementations§
Source§impl SetTablePrimaryKey
impl SetTablePrimaryKey
pub fn new() -> Self
Sourcepub fn set_primary_key_columns<T, V>(self, v: T) -> Self
pub fn set_primary_key_columns<T, V>(self, v: T) -> Self
Sets the value of primary_key_columns.
Sourcepub fn set_primary_key<T: Into<String>>(self, v: T) -> Self
pub fn set_primary_key<T: Into<String>>(self, v: T) -> Self
Sets the value of primary_key.
Trait Implementations§
Source§impl Clone for SetTablePrimaryKey
impl Clone for SetTablePrimaryKey
Source§fn clone(&self) -> SetTablePrimaryKey
fn clone(&self) -> SetTablePrimaryKey
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 SetTablePrimaryKey
impl Debug for SetTablePrimaryKey
Source§impl Default for SetTablePrimaryKey
impl Default for SetTablePrimaryKey
Source§fn default() -> SetTablePrimaryKey
fn default() -> SetTablePrimaryKey
Returns the “default value” for a type. Read more
Source§impl Message for SetTablePrimaryKey
impl Message for SetTablePrimaryKey
Source§impl PartialEq for SetTablePrimaryKey
impl PartialEq for SetTablePrimaryKey
impl StructuralPartialEq for SetTablePrimaryKey
Auto Trait Implementations§
impl Freeze for SetTablePrimaryKey
impl RefUnwindSafe for SetTablePrimaryKey
impl Send for SetTablePrimaryKey
impl Sync for SetTablePrimaryKey
impl Unpin for SetTablePrimaryKey
impl UnwindSafe for SetTablePrimaryKey
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