pub struct IntentDigest(/* private fields */);Expand description
The digest identity of transaction intent supplied out of band.
Implementations§
Source§impl IntentDigest
impl IntentDigest
Source§impl IntentDigest
impl IntentDigest
Sourcepub fn digest_text(intent: &str) -> Self
pub fn digest_text(intent: &str) -> Self
Hash transaction intent without retaining its potentially sensitive text.
Trait Implementations§
Source§impl Clone for IntentDigest
impl Clone for IntentDigest
Source§fn clone(&self) -> IntentDigest
fn clone(&self) -> IntentDigest
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 IntentDigest
Source§impl Debug for IntentDigest
impl Debug for IntentDigest
Source§impl Display for IntentDigest
impl Display for IntentDigest
impl Eq for IntentDigest
Source§impl FromStr for IntentDigest
impl FromStr for IntentDigest
Source§impl Hash for IntentDigest
impl Hash for IntentDigest
Source§impl Ord for IntentDigest
impl Ord for IntentDigest
Source§fn cmp(&self, other: &IntentDigest) -> Ordering
fn cmp(&self, other: &IntentDigest) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for IntentDigest
impl PartialEq for IntentDigest
Source§impl PartialOrd for IntentDigest
impl PartialOrd for IntentDigest
impl StructuralPartialEq for IntentDigest
Auto Trait Implementations§
impl Freeze for IntentDigest
impl RefUnwindSafe for IntentDigest
impl Send for IntentDigest
impl Sync for IntentDigest
impl Unpin for IntentDigest
impl UnsafeUnpin for IntentDigest
impl UnwindSafe for IntentDigest
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