pub struct BankIdSePhoneSignRequest {
pub ssn: Pno,
pub call_initiator: CallInitiator,
pub text: String,
pub callback_url: Option<Url>,
pub pin_required: bool,
pub digest: 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 signing session.
Fields§
§ssn: PnoSwedish personal identification number of the user to sign.
call_initiator: CallInitiatorWhether the user or the RP initiated the phone call.
text: StringVisible text the user must approve in BankID (max 50 000 chars).
callback_url: Option<Url>URL to receive the result callback on success or failure.
pin_required: boolForce PIN entry even when biometrics are enabled.
digest: Option<String>Hash digest of an associated file.
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 BankIdSePhoneSignRequest
impl BankIdSePhoneSignRequest
pub fn new( ssn: Pno, call_initiator: CallInitiator, text: impl Into<String>, ) -> Self
pub fn callback_url(self, url: Url) -> Self
pub fn pin_required(self, required: bool) -> Self
pub fn digest(self, digest: 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 BankIdSePhoneSignRequest
impl Clone for BankIdSePhoneSignRequest
Source§fn clone(&self) -> BankIdSePhoneSignRequest
fn clone(&self) -> BankIdSePhoneSignRequest
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 BankIdSePhoneSignRequest
impl Debug for BankIdSePhoneSignRequest
Auto Trait Implementations§
impl Freeze for BankIdSePhoneSignRequest
impl RefUnwindSafe for BankIdSePhoneSignRequest
impl Send for BankIdSePhoneSignRequest
impl Sync for BankIdSePhoneSignRequest
impl Unpin for BankIdSePhoneSignRequest
impl UnsafeUnpin for BankIdSePhoneSignRequest
impl UnwindSafe for BankIdSePhoneSignRequest
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