pub enum UnsupportedPk {}Expand description
Model::Pk of a model whose primary key is none of the types above (a text key, say).
Nothing can build one, so ForeignKey<Model> is unusable for it. Set by the derive.
Trait Implementations§
Source§impl Clone for UnsupportedPk
impl Clone for UnsupportedPk
impl Copy for UnsupportedPk
Source§impl Debug for UnsupportedPk
impl Debug for UnsupportedPk
Source§impl<'de> Deserialize<'de> for UnsupportedPk
impl<'de> Deserialize<'de> for UnsupportedPk
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
impl Eq for UnsupportedPk
Source§impl Hash for UnsupportedPk
impl Hash for UnsupportedPk
Source§impl PartialEq for UnsupportedPk
impl PartialEq for UnsupportedPk
Source§impl PrimaryKey for UnsupportedPk
impl PrimaryKey for UnsupportedPk
Source§const COLUMN_TYPE: ColumnType = crate::ColumnType::Uuid
const COLUMN_TYPE: ColumnType = crate::ColumnType::Uuid
Type of a foreign key column pointing at this key.
Source§fn null_value() -> SqlValue
fn null_value() -> SqlValue
The SQL NULL of this type (for
Option<ForeignKey<M>>).Source§impl Serialize for UnsupportedPk
impl Serialize for UnsupportedPk
impl StructuralPartialEq for UnsupportedPk
Source§impl ToSqlValue for UnsupportedPk
impl ToSqlValue for UnsupportedPk
fn to_sql_value(&self) -> SqlValue
Auto Trait Implementations§
impl Forget for UnsupportedPk
impl Freeze for UnsupportedPk
impl RefUnwindSafe for UnsupportedPk
impl Send for UnsupportedPk
impl Sync for UnsupportedPk
impl Unpin for UnsupportedPk
impl UnsafeUnpin for UnsupportedPk
impl UnwindSafe for UnsupportedPk
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