#[repr(i32)]pub enum AlterTableType {
Show 68 variants
Undefined = 0,
AtAddColumn = 1,
AtAddColumnToView = 2,
AtColumnDefault = 3,
AtCookedColumnDefault = 4,
AtDropNotNull = 5,
AtSetNotNull = 6,
AtSetExpression = 7,
AtDropExpression = 8,
AtCheckNotNull = 9,
AtSetStatistics = 10,
AtSetOptions = 11,
AtResetOptions = 12,
AtSetStorage = 13,
AtSetCompression = 14,
AtDropColumn = 15,
AtAddIndex = 16,
AtReAddIndex = 17,
AtAddConstraint = 18,
AtReAddConstraint = 19,
AtReAddDomainConstraint = 20,
AtAlterConstraint = 21,
AtValidateConstraint = 22,
AtAddIndexConstraint = 23,
AtDropConstraint = 24,
AtReAddComment = 25,
AtAlterColumnType = 26,
AtAlterColumnGenericOptions = 27,
AtChangeOwner = 28,
AtClusterOn = 29,
AtDropCluster = 30,
AtSetLogged = 31,
AtSetUnLogged = 32,
AtDropOids = 33,
AtSetAccessMethod = 34,
AtSetTableSpace = 35,
AtSetRelOptions = 36,
AtResetRelOptions = 37,
AtReplaceRelOptions = 38,
AtEnableTrig = 39,
AtEnableAlwaysTrig = 40,
AtEnableReplicaTrig = 41,
AtDisableTrig = 42,
AtEnableTrigAll = 43,
AtDisableTrigAll = 44,
AtEnableTrigUser = 45,
AtDisableTrigUser = 46,
AtEnableRule = 47,
AtEnableAlwaysRule = 48,
AtEnableReplicaRule = 49,
AtDisableRule = 50,
AtAddInherit = 51,
AtDropInherit = 52,
AtAddOf = 53,
AtDropOf = 54,
AtReplicaIdentity = 55,
AtEnableRowSecurity = 56,
AtDisableRowSecurity = 57,
AtForceRowSecurity = 58,
AtNoForceRowSecurity = 59,
AtGenericOptions = 60,
AtAttachPartition = 61,
AtDetachPartition = 62,
AtDetachPartitionFinalize = 63,
AtAddIdentity = 64,
AtSetIdentity = 65,
AtDropIdentity = 66,
AtReAddStatistics = 67,
}
Variants§
Undefined = 0
AtAddColumn = 1
AtAddColumnToView = 2
AtColumnDefault = 3
AtCookedColumnDefault = 4
AtDropNotNull = 5
AtSetNotNull = 6
AtSetExpression = 7
AtDropExpression = 8
AtCheckNotNull = 9
AtSetStatistics = 10
AtSetOptions = 11
AtResetOptions = 12
AtSetStorage = 13
AtSetCompression = 14
AtDropColumn = 15
AtAddIndex = 16
AtReAddIndex = 17
AtAddConstraint = 18
AtReAddConstraint = 19
AtReAddDomainConstraint = 20
AtAlterConstraint = 21
AtValidateConstraint = 22
AtAddIndexConstraint = 23
AtDropConstraint = 24
AtReAddComment = 25
AtAlterColumnType = 26
AtAlterColumnGenericOptions = 27
AtChangeOwner = 28
AtClusterOn = 29
AtDropCluster = 30
AtSetLogged = 31
AtSetUnLogged = 32
AtDropOids = 33
AtSetAccessMethod = 34
AtSetTableSpace = 35
AtSetRelOptions = 36
AtResetRelOptions = 37
AtReplaceRelOptions = 38
AtEnableTrig = 39
AtEnableAlwaysTrig = 40
AtEnableReplicaTrig = 41
AtDisableTrig = 42
AtEnableTrigAll = 43
AtDisableTrigAll = 44
AtEnableTrigUser = 45
AtDisableTrigUser = 46
AtEnableRule = 47
AtEnableAlwaysRule = 48
AtEnableReplicaRule = 49
AtDisableRule = 50
AtAddInherit = 51
AtDropInherit = 52
AtAddOf = 53
AtDropOf = 54
AtReplicaIdentity = 55
AtEnableRowSecurity = 56
AtDisableRowSecurity = 57
AtForceRowSecurity = 58
AtNoForceRowSecurity = 59
AtGenericOptions = 60
AtAttachPartition = 61
AtDetachPartition = 62
AtDetachPartitionFinalize = 63
AtAddIdentity = 64
AtSetIdentity = 65
AtDropIdentity = 66
AtReAddStatistics = 67
Implementations§
Source§impl AlterTableType
impl AlterTableType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AlterTableType
impl Clone for AlterTableType
Source§fn clone(&self) -> AlterTableType
fn clone(&self) -> AlterTableType
Returns a copy 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 AlterTableType
impl Debug for AlterTableType
Source§impl Default for AlterTableType
impl Default for AlterTableType
Source§fn default() -> AlterTableType
fn default() -> AlterTableType
Returns the “default value” for a type. Read more
Source§impl From<AlterTableType> for i32
impl From<AlterTableType> for i32
Source§fn from(value: AlterTableType) -> i32
fn from(value: AlterTableType) -> i32
Converts to this type from the input type.
Source§impl Hash for AlterTableType
impl Hash for AlterTableType
Source§impl Ord for AlterTableType
impl Ord for AlterTableType
Source§fn cmp(&self, other: &AlterTableType) -> Ordering
fn cmp(&self, other: &AlterTableType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlterTableType
impl PartialEq for AlterTableType
Source§impl PartialOrd for AlterTableType
impl PartialOrd for AlterTableType
Source§impl TryFrom<i32> for AlterTableType
impl TryFrom<i32> for AlterTableType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AlterTableType, UnknownEnumValue>
fn try_from(value: i32) -> Result<AlterTableType, UnknownEnumValue>
Performs the conversion.
impl Copy for AlterTableType
impl Eq for AlterTableType
impl StructuralPartialEq for AlterTableType
Auto Trait Implementations§
impl Freeze for AlterTableType
impl RefUnwindSafe for AlterTableType
impl Send for AlterTableType
impl Sync for AlterTableType
impl Unpin for AlterTableType
impl UnwindSafe for AlterTableType
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> 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