pub struct EntityStoreAssignment { /* private fields */ }Expand description
Explicit entity-to-store routing in the target database.
Implementations§
Source§impl EntityStoreAssignment
impl EntityStoreAssignment
Sourcepub const fn new(
entity: EntitySourceKey,
store: TargetStoreIdentity,
) -> EntityStoreAssignment
pub const fn new( entity: EntitySourceKey, store: TargetStoreIdentity, ) -> EntityStoreAssignment
Construct one opaque routing assignment.
Sourcepub const fn entity(&self) -> &EntitySourceKey
pub const fn entity(&self) -> &EntitySourceKey
Borrow the routed entity source key.
Sourcepub const fn store(&self) -> TargetStoreIdentity
pub const fn store(&self) -> TargetStoreIdentity
Return the opaque target-store identity.
Trait Implementations§
Source§impl Clone for EntityStoreAssignment
impl Clone for EntityStoreAssignment
Source§fn clone(&self) -> EntityStoreAssignment
fn clone(&self) -> EntityStoreAssignment
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 Debug for EntityStoreAssignment
impl Debug for EntityStoreAssignment
impl Eq for EntityStoreAssignment
Source§impl PartialEq for EntityStoreAssignment
impl PartialEq for EntityStoreAssignment
impl StructuralPartialEq for EntityStoreAssignment
Auto Trait Implementations§
impl Freeze for EntityStoreAssignment
impl RefUnwindSafe for EntityStoreAssignment
impl Send for EntityStoreAssignment
impl Sync for EntityStoreAssignment
impl Unpin for EntityStoreAssignment
impl UnsafeUnpin for EntityStoreAssignment
impl UnwindSafe for EntityStoreAssignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.