pub struct Password(_);
Expand description
A password.
See Passwords are Human-Readable in the SOP spec.
Implementations§
source§impl Password
impl Password
sourcepub fn new(password: Vec<u8>) -> Result<Password>
pub fn new(password: Vec<u8>) -> Result<Password>
Returns a Password
that is guaranteed to be human-readable.
Use this function when you get a password from the user to generate an artifact with (see Generating Material with Human-Readable Passwords).
sourcepub fn new_unchecked(password: Vec<u8>) -> Password
pub fn new_unchecked(password: Vec<u8>) -> Password
Returns a Password
without further checking.
Use this function when you get a password from the user that is used when consuming an artifact (see Consuming Password-protected Material).
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
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