pub struct Disclosure {
pub salt: String,
pub name: String,
pub value: Value,
}Expand description
A single disclosable claim bound to a salt. The wire form is encode();
the signed payload stores digest().
Fields§
§salt: String§name: String§value: ValueImplementations§
Source§impl Disclosure
impl Disclosure
Sourcepub fn new(
salt: impl Into<String>,
name: impl Into<String>,
value: Value,
) -> Self
pub fn new( salt: impl Into<String>, name: impl Into<String>, value: Value, ) -> Self
Bind a claim to the given salt. Callers use new_salt() for the salt;
tests pin it for reproducible vectors.
Trait Implementations§
Source§impl Clone for Disclosure
impl Clone for Disclosure
Source§fn clone(&self) -> Disclosure
fn clone(&self) -> Disclosure
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 Disclosure
impl Debug for Disclosure
impl Eq for Disclosure
Source§impl PartialEq for Disclosure
impl PartialEq for Disclosure
impl StructuralPartialEq for Disclosure
Auto Trait Implementations§
impl Freeze for Disclosure
impl RefUnwindSafe for Disclosure
impl Send for Disclosure
impl Sync for Disclosure
impl Unpin for Disclosure
impl UnsafeUnpin for Disclosure
impl UnwindSafe for Disclosure
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§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.