Struct sdjwt::disclosure::Disclosure
source · pub struct Disclosure { /* private fields */ }
Implementations§
source§impl Disclosure
impl Disclosure
pub fn new(key: Option<String>, value: Value) -> Self
pub fn salt_len(self, salt_len: usize) -> Self
pub fn algorithm(self, algorithm: HashAlgorithm) -> Self
pub fn get_algorithm(&self) -> HashAlgorithm
pub fn build(self) -> Result<Disclosure, Error>
pub fn disclosure(&self) -> &str
pub fn digest(&self) -> &String
pub fn key(&self) -> &Option<String>
pub fn value(&self) -> &Value
pub fn from_base64( disclosure: &str, algorithm: HashAlgorithm ) -> Result<Disclosure, Error>
Trait Implementations§
source§impl Clone for Disclosure
impl Clone for Disclosure
source§fn clone(&self) -> Disclosure
fn clone(&self) -> Disclosure
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for Disclosure
impl Send for Disclosure
impl Sync for Disclosure
impl Unpin 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