pub struct InMemoryRepositoryBehaviorRegistry { /* private fields */ }Implementations§
Source§impl InMemoryRepositoryBehaviorRegistry
impl InMemoryRepositoryBehaviorRegistry
pub fn new() -> Self
pub fn register( &mut self, entity: impl Into<String>, behavior: impl RepositoryBehavior + 'static, )
pub fn with_behavior( self, entity: impl Into<String>, behavior: impl RepositoryBehavior + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for InMemoryRepositoryBehaviorRegistry
impl Clone for InMemoryRepositoryBehaviorRegistry
Source§fn clone(&self) -> InMemoryRepositoryBehaviorRegistry
fn clone(&self) -> InMemoryRepositoryBehaviorRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemoryRepositoryBehaviorRegistry
impl Default for InMemoryRepositoryBehaviorRegistry
Source§fn default() -> InMemoryRepositoryBehaviorRegistry
fn default() -> InMemoryRepositoryBehaviorRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryRepositoryBehaviorRegistry
impl !RefUnwindSafe for InMemoryRepositoryBehaviorRegistry
impl Send for InMemoryRepositoryBehaviorRegistry
impl Sync for InMemoryRepositoryBehaviorRegistry
impl Unpin for InMemoryRepositoryBehaviorRegistry
impl UnsafeUnpin for InMemoryRepositoryBehaviorRegistry
impl !UnwindSafe for InMemoryRepositoryBehaviorRegistry
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