pub struct EntityId(/* private fields */);Implementations§
Source§impl EntityId
impl EntityId
pub fn new() -> EntityId
pub fn from_bytes(bytes: [u8; 16]) -> EntityId
pub fn to_bytes(&self) -> [u8; 16]
pub fn from_base64<T>(input: T) -> Result<EntityId, DecodeError>
pub fn to_base64(&self) -> String
pub fn to_base64_short(&self) -> String
pub fn to_ulid(&self) -> Ulid
pub fn from_ulid(ulid: Ulid) -> EntityId
Trait Implementations§
Source§impl Collatable for EntityId
impl Collatable for EntityId
Source§fn successor_bytes(&self) -> Option<Vec<u8>>
fn successor_bytes(&self) -> Option<Vec<u8>>
Returns the immediate successor’s binary representation if one exists
Source§fn predecessor_bytes(&self) -> Option<Vec<u8>>
fn predecessor_bytes(&self) -> Option<Vec<u8>>
Returns the immediate predecessor’s binary representation if one exists
Source§fn is_minimum(&self) -> bool
fn is_minimum(&self) -> bool
Returns true if this value represents a minimum bound in its domain
Source§fn is_maximum(&self) -> bool
fn is_maximum(&self) -> bool
Returns true if this value represents a maximum bound in its domain
fn is_in_range( &self, lower: RangeBound<&Self>, upper: RangeBound<&Self>, ) -> bool
Source§impl<'de> Deserialize<'de> for EntityId
impl<'de> Deserialize<'de> for EntityId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<EntityId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EntityId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for EntityId
impl Ord for EntityId
Source§impl PartialOrd for EntityId
impl PartialOrd for EntityId
Source§impl Property for EntityId
impl Property for EntityId
fn into_value(&self) -> Result<Option<Value>, PropertyError>
fn from_value(value: Option<Value>) -> Result<Self, PropertyError>
Source§impl Serialize for EntityId
impl Serialize for EntityId
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EntityId
impl Eq for EntityId
impl StructuralPartialEq for EntityId
Auto Trait Implementations§
impl Freeze for EntityId
impl RefUnwindSafe for EntityId
impl Send for EntityId
impl Sync for EntityId
impl Unpin for EntityId
impl UnwindSafe for EntityId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.Source§impl<T> FromActiveType<LWW<T>> for Twhere
T: Property,
impl<T> FromActiveType<LWW<T>> for Twhere
T: Property,
fn from_active(active: LWW<T>) -> Result<T, PropertyError>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more