pub struct BankIdSeSignRequest {
pub text: String,
pub ssn: Option<Pno>,
pub ip_address: Option<IpAddress>,
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 signing session.
Fields§
§text: StringVisible text the user must approve in BankID (max 50 000 chars).
ssn: Option<Pno>Restrict the signing session to this Swedish personal number.
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.
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 BankIdSeSignRequest
impl BankIdSeSignRequest
pub fn new(text: impl Into<String>) -> 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 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 BankIdSeSignRequest
impl Clone for BankIdSeSignRequest
Source§fn clone(&self) -> BankIdSeSignRequest
fn clone(&self) -> BankIdSeSignRequest
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 BankIdSeSignRequest
impl Debug for BankIdSeSignRequest
Auto Trait Implementations§
impl Freeze for BankIdSeSignRequest
impl RefUnwindSafe for BankIdSeSignRequest
impl Send for BankIdSeSignRequest
impl Sync for BankIdSeSignRequest
impl Unpin for BankIdSeSignRequest
impl UnsafeUnpin for BankIdSeSignRequest
impl UnwindSafe for BankIdSeSignRequest
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