pub struct BankIdSePhoneAuthRequest {
pub ssn: Pno,
pub call_initiator: CallInitiator,
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 phone authentication session.
Fields§
§ssn: PnoSwedish personal identification number of the user to authenticate.
call_initiator: CallInitiatorWhether the user or the RP initiated the phone call.
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 BankIdSePhoneAuthRequest
impl BankIdSePhoneAuthRequest
pub fn new(ssn: Pno, call_initiator: CallInitiator) -> 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 BankIdSePhoneAuthRequest
impl Clone for BankIdSePhoneAuthRequest
Source§fn clone(&self) -> BankIdSePhoneAuthRequest
fn clone(&self) -> BankIdSePhoneAuthRequest
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 BankIdSePhoneAuthRequest
impl Debug for BankIdSePhoneAuthRequest
Auto Trait Implementations§
impl Freeze for BankIdSePhoneAuthRequest
impl RefUnwindSafe for BankIdSePhoneAuthRequest
impl Send for BankIdSePhoneAuthRequest
impl Sync for BankIdSePhoneAuthRequest
impl Unpin for BankIdSePhoneAuthRequest
impl UnsafeUnpin for BankIdSePhoneAuthRequest
impl UnwindSafe for BankIdSePhoneAuthRequest
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