pub struct PathDigest(/* private fields */);Expand description
Pseudonymous digest of one structural JSON path.
The digest contains no clear-text field names. Hosts with a safe path
allowlist can hash a JsonPathPattern locally to resolve explanations.
Implementations§
Source§impl PathDigest
impl PathDigest
Sourcepub fn for_pattern(pattern: &JsonPathPattern) -> Self
pub fn for_pattern(pattern: &JsonPathPattern) -> Self
Computes the digest used for a canonical path pattern.
Trait Implementations§
Source§impl Clone for PathDigest
impl Clone for PathDigest
Source§fn clone(&self) -> PathDigest
fn clone(&self) -> PathDigest
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 moreimpl Copy for PathDigest
Source§impl Debug for PathDigest
impl Debug for PathDigest
Source§impl<'de> Deserialize<'de> for PathDigest
impl<'de> Deserialize<'de> for PathDigest
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 PathDigest
impl Display for PathDigest
impl Eq for PathDigest
Source§impl Hash for PathDigest
impl Hash for PathDigest
Source§impl Ord for PathDigest
impl Ord for PathDigest
Source§fn cmp(&self, other: &PathDigest) -> Ordering
fn cmp(&self, other: &PathDigest) -> 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 PathDigest
impl PartialEq for PathDigest
Source§impl PartialOrd for PathDigest
impl PartialOrd for PathDigest
Source§impl Serialize for PathDigest
impl Serialize for PathDigest
impl StructuralPartialEq for PathDigest
Auto Trait Implementations§
impl Freeze for PathDigest
impl RefUnwindSafe for PathDigest
impl Send for PathDigest
impl Sync for PathDigest
impl Unpin for PathDigest
impl UnsafeUnpin for PathDigest
impl UnwindSafe for PathDigest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more