pub struct BankIdNoAuthRequest {
pub redirect_url: Option<Url>,
pub request_ssn: Option<bool>,
pub request_phone: Option<bool>,
pub request_email: Option<bool>,
pub request_address: Option<bool>,
pub ref_id: Option<String>,
pub app_callback_uri: Option<Url>,
}Expand description
Request body for starting a BankID NO authentication session.
Fields§
§redirect_url: Option<Url>URL to redirect the user to after completing the flow.
request_ssn: Option<bool>Request the user’s Norwegian personal number (fødselsnummer).
request_phone: Option<bool>Request the user’s phone number.
request_email: Option<bool>Request the user’s email address.
request_address: Option<bool>Request the user’s registered address.
ref_id: Option<String>Reference ID returned verbatim in the result and callback.
app_callback_uri: Option<Url>(BETA) Deep-link URI to return the user to your app after authentication.
Implementations§
Source§impl BankIdNoAuthRequest
impl BankIdNoAuthRequest
pub fn new() -> Self
pub fn redirect_url(self, url: Url) -> Self
pub fn request_ssn(self, v: bool) -> Self
pub fn request_phone(self, v: bool) -> Self
pub fn request_email(self, v: bool) -> Self
pub fn request_address(self, v: bool) -> Self
pub fn ref_id(self, ref_id: impl Into<String>) -> Self
pub fn app_callback_uri(self, uri: Url) -> Self
Trait Implementations§
Source§impl Clone for BankIdNoAuthRequest
impl Clone for BankIdNoAuthRequest
Source§fn clone(&self) -> BankIdNoAuthRequest
fn clone(&self) -> BankIdNoAuthRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BankIdNoAuthRequest
impl Debug for BankIdNoAuthRequest
Source§impl Default for BankIdNoAuthRequest
impl Default for BankIdNoAuthRequest
Source§fn default() -> BankIdNoAuthRequest
fn default() -> BankIdNoAuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BankIdNoAuthRequest
impl RefUnwindSafe for BankIdNoAuthRequest
impl Send for BankIdNoAuthRequest
impl Sync for BankIdNoAuthRequest
impl Unpin for BankIdNoAuthRequest
impl UnsafeUnpin for BankIdNoAuthRequest
impl UnwindSafe for BankIdNoAuthRequest
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