#[repr(i32)]pub enum DdlOp {
Unspecified = 0,
Create = 1,
CreateOrReplace = 2,
Alter = 3,
Drop = 4,
DropIfExist = 5,
}
Variants§
Unspecified = 0
Create = 1
A create operation (for any object)
CreateOrReplace = 2
A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists
Alter = 3
An operation that modifies the schema (e.g., column names, types, default values) for the target object
Drop = 4
An operation that removes an object from the system
DropIfExist = 5
An operation that removes an object from the system (without throwing an exception if the object did not exist)
Implementations§
Source§impl DdlOp
impl DdlOp
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§
§impl<'de> Deserialize<'de> for DdlOp
impl<'de> Deserialize<'de> for DdlOp
§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 Ord for DdlOp
impl Ord for DdlOp
Source§impl PartialOrd for DdlOp
impl PartialOrd for DdlOp
impl Copy for DdlOp
impl Eq for DdlOp
impl StructuralPartialEq for DdlOp
Auto Trait Implementations§
impl Freeze for DdlOp
impl RefUnwindSafe for DdlOp
impl Send for DdlOp
impl Sync for DdlOp
impl Unpin for DdlOp
impl UnwindSafe for DdlOp
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.