pub struct IdentityToken(pub String);Expand description
An opaque, globally-comparable identity for one atomic sub-unit of an artifact (e.g. a table row).
The engine only ever compares tokens for equality / membership /
disjointness — it never interprets their contents. The producing artifact
format owns the meaning (content hash, stable key, …) via its
IdentityExtractor. Tokens must be globally comparable: the same sub-unit
in two different artifacts must yield the same token (content- or
key-derived, never a positional index).
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for IdentityToken
impl Clone for IdentityToken
Source§fn clone(&self) -> IdentityToken
fn clone(&self) -> IdentityToken
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 IdentityToken
impl Debug for IdentityToken
Source§impl<'de> Deserialize<'de> for IdentityToken
impl<'de> Deserialize<'de> for IdentityToken
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
impl Eq for IdentityToken
Source§impl Hash for IdentityToken
impl Hash for IdentityToken
Source§impl Ord for IdentityToken
impl Ord for IdentityToken
Source§fn cmp(&self, other: &IdentityToken) -> Ordering
fn cmp(&self, other: &IdentityToken) -> Ordering
1.21.0 (const: unstable) · 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 IdentityToken
impl PartialEq for IdentityToken
Source§fn eq(&self, other: &IdentityToken) -> bool
fn eq(&self, other: &IdentityToken) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IdentityToken
impl PartialOrd for IdentityToken
Source§impl Serialize for IdentityToken
impl Serialize for IdentityToken
impl StructuralPartialEq for IdentityToken
Auto Trait Implementations§
impl Freeze for IdentityToken
impl RefUnwindSafe for IdentityToken
impl Send for IdentityToken
impl Sync for IdentityToken
impl Unpin for IdentityToken
impl UnsafeUnpin for IdentityToken
impl UnwindSafe for IdentityToken
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