pub enum PamAuthResponse {
Unknown,
Success,
Denied,
Password,
DeviceAuthorizationGrant {
data: DeviceAuthorizationResponse,
},
MFACode {
msg: String,
},
MFAPoll {
msg: String,
polling_interval: u32,
},
MFAPollWait,
SetupPin {
msg: String,
},
Pin,
}
Variants§
Unknown
Success
Denied
Password
DeviceAuthorizationGrant
Fields
MFACode
PAM must prompt for an authentication code
MFAPoll
PAM will poll for an external response
Fields
MFAPollWait
SetupPin
PAM must prompt for a new PIN and confirm that PIN input
Pin
Trait Implementations§
source§impl Debug for PamAuthResponse
impl Debug for PamAuthResponse
source§impl<'de> Deserialize<'de> for PamAuthResponse
impl<'de> Deserialize<'de> for PamAuthResponse
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
source§impl From<PamAuthResponse> for ClientResponse
impl From<PamAuthResponse> for ClientResponse
source§fn from(par: PamAuthResponse) -> Self
fn from(par: PamAuthResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PamAuthResponse
impl RefUnwindSafe for PamAuthResponse
impl Send for PamAuthResponse
impl Sync for PamAuthResponse
impl Unpin for PamAuthResponse
impl UnwindSafe for PamAuthResponse
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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