Enum butane_core::migrations::adb::TypeKey
source · pub enum TypeKey {
PK(String),
CustomType(String),
}
Expand description
Key used to help resolve DeferredSqlType
Variants§
PK(String)
Represents a type which is the primary key for a table with the given name
CustomType(String)
Represents a type which is not natively known to butane but
which butane will be made aware of with the #\[butane_type\]
macro
Trait Implementations§
source§impl<'de> Deserialize<'de> for TypeKey
impl<'de> Deserialize<'de> for TypeKey
source§fn deserialize<D>(deserializer: D) -> Result<TypeKey, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<TypeKey, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for TypeKey
impl Ord for TypeKey
source§impl PartialEq<TypeKey> for TypeKey
impl PartialEq<TypeKey> for TypeKey
source§impl PartialOrd<TypeKey> for TypeKey
impl PartialOrd<TypeKey> for TypeKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TypeKey
impl StructuralEq for TypeKey
impl StructuralPartialEq for TypeKey
Auto Trait Implementations§
impl RefUnwindSafe for TypeKey
impl Send for TypeKey
impl Sync for TypeKey
impl Unpin for TypeKey
impl UnwindSafe for TypeKey
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