Struct kanidm_unix_resolver::idprovider::interface::UserToken
source · pub struct UserToken {
pub provider: ProviderOrigin,
pub name: String,
pub spn: String,
pub uuid: Uuid,
pub gidnumber: u32,
pub displayname: String,
pub shell: Option<String>,
pub groups: Vec<GroupToken>,
pub sshkeys: Vec<String>,
pub valid: bool,
pub extra_keys: BTreeMap<XKeyId, Value>,
}
Fields§
§provider: ProviderOrigin
§name: String
§spn: String
§uuid: Uuid
§gidnumber: u32
§displayname: String
§shell: Option<String>
§groups: Vec<GroupToken>
§sshkeys: Vec<String>
§valid: bool
§extra_keys: BTreeMap<XKeyId, Value>
Implementations§
source§impl UserToken
impl UserToken
pub fn kanidm_update_cached_password( &mut self, crypto_policy: &CryptoPolicy, cred: &str, tpm: &mut BoxedDynTpm, hmac_key: &HmacKey, )
pub fn kanidm_check_cached_password( &self, cred: &str, tpm: &mut BoxedDynTpm, hmac_key: &HmacKey, ) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserToken
impl<'de> Deserialize<'de> for UserToken
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 Freeze for UserToken
impl RefUnwindSafe for UserToken
impl Send for UserToken
impl Sync for UserToken
impl Unpin for UserToken
impl UnwindSafe for UserToken
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)