pub trait PrefetchRef<M, R> {
// Required method
fn prefetch_kind(&self) -> PrefetchKind<'_>;
}Expand description
Accepted by prefetch_related: a reverse foreign key (Comment::POST_ID, a
post_id: ForeignKey<Post> field on Comment), a M2M field (Article::TAGS), or &str
naming the reverse FK column (then name the model with ::<R>).
Required Methods§
fn prefetch_kind(&self) -> PrefetchKind<'_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".