pub struct BankIdNoSignRequest {
pub redirect_url: Option<Url>,
pub text: Option<String>,
pub documents: Option<Vec<String>>,
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>,
}Expand description
Request body for starting a BankID NO signing session.
Fields§
§redirect_url: Option<Url>URL to redirect the user to after completing the flow.
text: Option<String>Text to sign (max 118 chars). Mutually exclusive with documents.
documents: Option<Vec<String>>Document IDs to sign (from /v3/document). Mutually exclusive with text.
request_ssn: Option<bool>§request_phone: Option<bool>§request_email: Option<bool>§request_address: Option<bool>§ref_id: Option<String>Reference ID returned verbatim in the result and callback.
Implementations§
Source§impl BankIdNoSignRequest
impl BankIdNoSignRequest
pub fn new() -> Self
pub fn redirect_url(self, url: Url) -> Self
pub fn text(self, v: impl Into<String>) -> Self
pub fn documents(self, v: Vec<String>) -> 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
Trait Implementations§
Source§impl Clone for BankIdNoSignRequest
impl Clone for BankIdNoSignRequest
Source§fn clone(&self) -> BankIdNoSignRequest
fn clone(&self) -> BankIdNoSignRequest
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 BankIdNoSignRequest
impl Debug for BankIdNoSignRequest
Source§impl Default for BankIdNoSignRequest
impl Default for BankIdNoSignRequest
Source§fn default() -> BankIdNoSignRequest
fn default() -> BankIdNoSignRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BankIdNoSignRequest
impl RefUnwindSafe for BankIdNoSignRequest
impl Send for BankIdNoSignRequest
impl Sync for BankIdNoSignRequest
impl Unpin for BankIdNoSignRequest
impl UnsafeUnpin for BankIdNoSignRequest
impl UnwindSafe for BankIdNoSignRequest
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