pub struct FrejaAuthRequest {
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 authentication session.
Fields§
§ssn: Option<String>Personal number of the user to authenticate.
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 FrejaAuthRequest
impl FrejaAuthRequest
pub fn new() -> 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 FrejaAuthRequest
impl Clone for FrejaAuthRequest
Source§fn clone(&self) -> FrejaAuthRequest
fn clone(&self) -> FrejaAuthRequest
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 FrejaAuthRequest
impl Debug for FrejaAuthRequest
Source§impl Default for FrejaAuthRequest
impl Default for FrejaAuthRequest
Source§fn default() -> FrejaAuthRequest
fn default() -> FrejaAuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrejaAuthRequest
impl RefUnwindSafe for FrejaAuthRequest
impl Send for FrejaAuthRequest
impl Sync for FrejaAuthRequest
impl Unpin for FrejaAuthRequest
impl UnsafeUnpin for FrejaAuthRequest
impl UnwindSafe for FrejaAuthRequest
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