Enum butane::migrations::adb::TypeIdentifier
source · pub enum TypeIdentifier {
Ty(SqlType),
Name(String),
}
Expand description
Identifier for a type as used in a database column. Supports both
SqlType and identifiers known only by name. The
latter is used for custom types. SqlType::Custom
cannot easily be used
directly at compile time when the proc macro serializing type information runs.
Variants§
Trait Implementations§
source§impl Clone for TypeIdentifier
impl Clone for TypeIdentifier
source§fn clone(&self) -> TypeIdentifier
fn clone(&self) -> TypeIdentifier
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 TypeIdentifier
impl Debug for TypeIdentifier
source§impl<'de> Deserialize<'de> for TypeIdentifier
impl<'de> Deserialize<'de> for TypeIdentifier
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TypeIdentifier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TypeIdentifier, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SqlType> for TypeIdentifier
impl From<SqlType> for TypeIdentifier
source§fn from(ty: SqlType) -> TypeIdentifier
fn from(ty: SqlType) -> TypeIdentifier
Converts to this type from the input type.
source§impl From<TypeIdentifier> for DeferredSqlType
impl From<TypeIdentifier> for DeferredSqlType
source§fn from(id: TypeIdentifier) -> DeferredSqlType
fn from(id: TypeIdentifier) -> DeferredSqlType
Converts to this type from the input type.
source§impl PartialEq<TypeIdentifier> for TypeIdentifier
impl PartialEq<TypeIdentifier> for TypeIdentifier
source§fn eq(&self, other: &TypeIdentifier) -> bool
fn eq(&self, other: &TypeIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TypeIdentifier
impl Serialize for TypeIdentifier
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TypeIdentifier
impl StructuralEq for TypeIdentifier
impl StructuralPartialEq for TypeIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for TypeIdentifier
impl Send for TypeIdentifier
impl Sync for TypeIdentifier
impl Unpin for TypeIdentifier
impl UnwindSafe for TypeIdentifier
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more