pub struct DatabaseConventionRule;
Expand description
Example convention rule: Database-related services are scoped
Trait Implementations§
Source§impl ConventionRule for DatabaseConventionRule
impl ConventionRule for DatabaseConventionRule
Source§fn get_lifetime(&self, type_name: &str) -> Option<ServiceScope>
fn get_lifetime(&self, type_name: &str) -> Option<ServiceScope>
Get lifetime for a type name, return None if rule doesn’t apply
Auto Trait Implementations§
impl Freeze for DatabaseConventionRule
impl RefUnwindSafe for DatabaseConventionRule
impl Send for DatabaseConventionRule
impl Sync for DatabaseConventionRule
impl Unpin for DatabaseConventionRule
impl UnwindSafe for DatabaseConventionRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more