Struct akka_persistence_rs::PersistenceId
source · pub struct PersistenceId {
pub entity_type: EntityType,
pub entity_id: EntityId,
}
Expand description
A namespaced entity id given an entity type.
Fields§
§entity_type: EntityType
§entity_id: EntityId
Implementations§
source§impl PersistenceId
impl PersistenceId
pub fn new(entity_type: EntityType, entity_id: EntityId) -> Self
pub fn slice(&self) -> u32
pub fn jdk_string_hash(&self) -> i32
Trait Implementations§
source§impl Clone for PersistenceId
impl Clone for PersistenceId
source§fn clone(&self) -> PersistenceId
fn clone(&self) -> PersistenceId
Returns a copy of the value. Read more
1.0.0 · 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 PersistenceId
impl Debug for PersistenceId
source§impl<'de> Deserialize<'de> for PersistenceId
impl<'de> Deserialize<'de> for PersistenceId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PersistenceId
impl Display for PersistenceId
source§impl FromStr for PersistenceId
impl FromStr for PersistenceId
source§impl Hash for PersistenceId
impl Hash for PersistenceId
source§impl Ord for PersistenceId
impl Ord for PersistenceId
source§fn cmp(&self, other: &PersistenceId) -> Ordering
fn cmp(&self, other: &PersistenceId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PersistenceId
impl PartialEq for PersistenceId
source§fn eq(&self, other: &PersistenceId) -> bool
fn eq(&self, other: &PersistenceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PersistenceId
impl PartialOrd for PersistenceId
source§fn partial_cmp(&self, other: &PersistenceId) -> Option<Ordering>
fn partial_cmp(&self, other: &PersistenceId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PersistenceId
impl Serialize for PersistenceId
impl Eq for PersistenceId
impl StructuralEq for PersistenceId
impl StructuralPartialEq for PersistenceId
Auto Trait Implementations§
impl RefUnwindSafe for PersistenceId
impl Send for PersistenceId
impl Sync for PersistenceId
impl Unpin for PersistenceId
impl UnwindSafe for PersistenceId
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more