pub struct Profile {
pub token: String,
pub user: UserType,
pub pin: Option<String>,
}
Expand description
The HSM Profile
contains authentication credentials for the named token.
The profiles file is a JSON map of profile names to per-token credentials:
ⓘ
{
"earlgrey": {
"token": "my_personal_token",
"user": "user",
"pin": "abc123"
}
}
Fields§
§token: String
The name of the HSM token.
user: UserType
The user type to authenticate to the token.
pin: Option<String>
The pin for the user.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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