Skip to main content

AuthTokenUserIdReverse

Trait AuthTokenUserIdReverse 

Source
pub trait AuthTokenUserIdReverse {
    // Required method
    fn auth_token_set(&self) -> QuerySet<AuthToken>;
}
Expand description

Reverse-FK trait emitted by #[derive(Model)] for AuthToken::user_id. Importing this trait lets callers spell parent.auth_token_set() to get a QuerySet<AuthToken> filtered to children whose user_id FK points at the parent. Trait-based emission (gap 105) sidesteps the orphan rule, so the accessor works even when the parent type is defined in another crate.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§