pub struct SecretPassword {
pub id: String,
pub secret: Password,
}Expand description
A struct for storing a password with an ID. Uses same password for both encryption and integrity.
Fields§
§id: StringThe ID of the password.
secret: PasswordThe password.
Trait Implementations§
Source§impl Clone for SecretPassword
impl Clone for SecretPassword
Source§fn clone(&self) -> SecretPassword
fn clone(&self) -> SecretPassword
Returns a duplicate 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 moreSource§impl SpecificPasswordInit for SecretPassword
impl SpecificPasswordInit for SecretPassword
Source§fn normalize(&self) -> Result<SpecificPassword, HapiIronOxideError>
fn normalize(&self) -> Result<SpecificPassword, HapiIronOxideError>
Normalizes the password to
SpecificPassword Read moreSource§fn normalize_unseal(
&self,
_idx: Option<&str>,
) -> Result<SpecificPassword, HapiIronOxideError>
fn normalize_unseal( &self, _idx: Option<&str>, ) -> Result<SpecificPassword, HapiIronOxideError>
Normalizes the password to
SpecificPassword, except this one takes in the optional
index of the password in case the user provides the HashMap of password with an ID and
the password. Read moreAuto Trait Implementations§
impl Freeze for SecretPassword
impl RefUnwindSafe for SecretPassword
impl Send for SecretPassword
impl Sync for SecretPassword
impl Unpin for SecretPassword
impl UnwindSafe for SecretPassword
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more