pub struct BankIdSeAuthRequest {
pub ssn: Option<Pno>,
pub ip_address: Option<IpAddress>,
pub callback_url: Option<Url>,
pub pin_required: bool,
pub intent: Option<String>,
pub org_number: Option<OrgNumber>,
pub request_address: Option<bool>,
pub ref_id: Option<String>,
}Expand description
Request body for starting a BankID SE authentication session.
Fields§
§ssn: Option<Pno>Swedish personal identification number. Restricts the session to this user.
ip_address: Option<IpAddress>End-user IP address (or the closest proxy address).
callback_url: Option<Url>URL to receive the result callback on success or failure.
pin_required: boolForce PIN entry even when biometrics are enabled.
intent: Option<String>Text describing the purpose of the identification, shown to the user.
org_number: Option<OrgNumber>Swedish organisation number — enables company signatory check.
request_address: Option<bool>Fetch the user’s registered address on completion.
ref_id: Option<String>Reference ID returned verbatim in the result and callback.
Implementations§
Source§impl BankIdSeAuthRequest
impl BankIdSeAuthRequest
pub fn new() -> Self
pub fn ssn(self, ssn: Pno) -> Self
pub fn ip_address(self, ip: IpAddress) -> Self
pub fn callback_url(self, url: Url) -> Self
pub fn pin_required(self, required: bool) -> Self
pub fn intent(self, intent: impl Into<String>) -> Self
pub fn org_number(self, org_number: OrgNumber) -> Self
pub fn request_address(self, request: bool) -> Self
pub fn ref_id(self, ref_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for BankIdSeAuthRequest
impl Clone for BankIdSeAuthRequest
Source§fn clone(&self) -> BankIdSeAuthRequest
fn clone(&self) -> BankIdSeAuthRequest
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 BankIdSeAuthRequest
impl Debug for BankIdSeAuthRequest
Source§impl Default for BankIdSeAuthRequest
impl Default for BankIdSeAuthRequest
Source§fn default() -> BankIdSeAuthRequest
fn default() -> BankIdSeAuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BankIdSeAuthRequest
impl RefUnwindSafe for BankIdSeAuthRequest
impl Send for BankIdSeAuthRequest
impl Sync for BankIdSeAuthRequest
impl Unpin for BankIdSeAuthRequest
impl UnsafeUnpin for BankIdSeAuthRequest
impl UnwindSafe for BankIdSeAuthRequest
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