Trait butane::AsPrimaryKey
source · pub trait AsPrimaryKey<T>where
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.