Trait butane_core::sqlval::AsPrimaryKey
source · pub trait AsPrimaryKey<T: DataObject> {
// Required method
fn as_pk(&self) -> Cow<'_, <T as DataObject>::PKType>;
}
Expand description
Trait for referencing the primary key for a given model. Used to implement ForeignKey equality tests.