Trait butane::AsPrimaryKey [−][src]
pub trait AsPrimaryKey<T> where
T: DataObject, {
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.