pub struct FrejaSignRequest {
pub text: String,
pub ssn: Option<String>,
pub callback_url: Option<Url>,
pub min_registration_level: Option<FrejaRegistrationLevel>,
pub org_number: Option<OrgNumber>,
pub request_address: Option<bool>,
pub ref_id: Option<String>,
}Expand description
Request body for starting a Freja eID signing session.
Fields§
§text: StringText to sign, displayed to the user in the Freja app.
ssn: Option<String>Personal number of the user to sign.
callback_url: Option<Url>URL to receive the result callback on success or failure.
min_registration_level: Option<FrejaRegistrationLevel>Minimum required Freja registration level.
org_number: Option<OrgNumber>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 FrejaSignRequest
impl FrejaSignRequest
pub fn new(text: impl Into<String>) -> Self
pub fn ssn(self, v: impl Into<String>) -> Self
pub fn callback_url(self, url: Url) -> Self
pub fn min_registration_level(self, v: FrejaRegistrationLevel) -> Self
pub fn org_number(self, org_number: OrgNumber) -> 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 FrejaSignRequest
impl Clone for FrejaSignRequest
Source§fn clone(&self) -> FrejaSignRequest
fn clone(&self) -> FrejaSignRequest
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 FrejaSignRequest
impl Debug for FrejaSignRequest
Auto Trait Implementations§
impl Freeze for FrejaSignRequest
impl RefUnwindSafe for FrejaSignRequest
impl Send for FrejaSignRequest
impl Sync for FrejaSignRequest
impl Unpin for FrejaSignRequest
impl UnsafeUnpin for FrejaSignRequest
impl UnwindSafe for FrejaSignRequest
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