pub struct PrimaryKey { /* private fields */ }Expand description
All event and data objects within ATE have a primary key that uniquely represents it and allows it to be indexed and referenced. This primary key can be derived from other input data like strings or numbers in order to make object lookups that are static (e.g. root nodes)
Implementations§
Source§impl PrimaryKey
impl PrimaryKey
pub fn current_get() -> Option<PrimaryKey>
pub fn current_set(val: Option<PrimaryKey>) -> Option<PrimaryKey>
pub fn generate() -> PrimaryKey
pub fn new(key: u64) -> PrimaryKey
pub fn sizeof() -> u64
pub fn as_hex_string(&self) -> String
pub fn as_fixed_hex_string(&self) -> String
pub fn as_u64(&self) -> u64
pub fn from_ext(val: AteHash, min: u64, max: u64) -> PrimaryKey
Trait Implementations§
Source§impl Clone for PrimaryKey
impl Clone for PrimaryKey
Source§fn clone(&self) -> PrimaryKey
fn clone(&self) -> PrimaryKey
Returns a duplicate 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 PrimaryKey
impl Debug for PrimaryKey
Source§impl Default for PrimaryKey
impl Default for PrimaryKey
Source§fn default() -> PrimaryKey
fn default() -> PrimaryKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrimaryKey
impl<'de> Deserialize<'de> for PrimaryKey
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 PrimaryKey
impl Display for PrimaryKey
Source§impl From<&'static str> for PrimaryKey
impl From<&'static str> for PrimaryKey
Source§fn from(val: &'static str) -> PrimaryKey
fn from(val: &'static str) -> PrimaryKey
Converts to this type from the input type.
Source§impl From<AteHash> for PrimaryKey
impl From<AteHash> for PrimaryKey
Source§fn from(val: AteHash) -> PrimaryKey
fn from(val: AteHash) -> PrimaryKey
Converts to this type from the input type.
Source§impl From<String> for PrimaryKey
impl From<String> for PrimaryKey
Source§fn from(val: String) -> PrimaryKey
fn from(val: String) -> PrimaryKey
Converts to this type from the input type.
Source§impl From<u64> for PrimaryKey
impl From<u64> for PrimaryKey
Source§fn from(val: u64) -> PrimaryKey
fn from(val: u64) -> PrimaryKey
Converts to this type from the input type.
Source§impl Hash for PrimaryKey
impl Hash for PrimaryKey
Source§impl Ord for PrimaryKey
impl Ord for PrimaryKey
Source§fn cmp(&self, other: &PrimaryKey) -> Ordering
fn cmp(&self, other: &PrimaryKey) -> 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 PrimaryKey
impl PartialEq for PrimaryKey
Source§impl PartialOrd for PrimaryKey
impl PartialOrd for PrimaryKey
Source§impl Serialize for PrimaryKey
impl Serialize for PrimaryKey
impl Copy for PrimaryKey
impl Eq for PrimaryKey
impl StructuralPartialEq for PrimaryKey
Auto Trait Implementations§
impl Freeze for PrimaryKey
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnwindSafe for PrimaryKey
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.