#[non_exhaustive]pub struct CredentialsModel {
pub full: bool,
pub user_id: bool,
pub none: bool,
}
Expand description
Requirements for user identifier and password.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.full: bool
A full set of credentials may be provided to support fully embedded authentication (including scraped redirects).
user_id: bool
Only a user identifier without a password may be provided. This is typically the case for decoupled authentication where the user e.g. authorizes access in a mobile application. Note that if password-less authentication fails (e.g. as no device for decoupled authentication is set up for the user and a redirect is not supported), an error is returned and the transaction has to get restarted with a full set of credentials.
none: bool
Credentials are not required. The user will provide them to the service provider during a redirect.
Trait Implementations§
Source§impl Clone for CredentialsModel
impl Clone for CredentialsModel
Source§fn clone(&self) -> CredentialsModel
fn clone(&self) -> CredentialsModel
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 Debug for CredentialsModel
impl Debug for CredentialsModel
Source§impl<'de> Deserialize<'de> for CredentialsModel
impl<'de> Deserialize<'de> for CredentialsModel
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 Hash for CredentialsModel
impl Hash for CredentialsModel
Source§impl PartialEq for CredentialsModel
impl PartialEq for CredentialsModel
Source§impl Serialize for CredentialsModel
impl Serialize for CredentialsModel
impl Copy for CredentialsModel
impl Eq for CredentialsModel
impl StructuralPartialEq for CredentialsModel
Auto Trait Implementations§
impl Freeze for CredentialsModel
impl RefUnwindSafe for CredentialsModel
impl Send for CredentialsModel
impl Sync for CredentialsModel
impl Unpin for CredentialsModel
impl UnwindSafe for CredentialsModel
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