pub struct SetTablePrimaryKey {
pub primary_key: Option<String>,
pub primary_key_columns: Option<Vec<String>>,
}
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§primary_key: Option<String>
Optional. Name for the primary key
primary_key_columns: Option<Vec<String>>
Required. List of column names for the 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<'de> Deserialize<'de> for SetTablePrimaryKey
impl<'de> Deserialize<'de> for SetTablePrimaryKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SetTablePrimaryKey
impl Serialize for SetTablePrimaryKey
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more