pub struct FrejaBackchannelAuthRequest {
pub ssn: String,
pub country: Country,
pub callback_url: Option<Url>,
pub min_registration_level: 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 backchannel authentication session.
Fields§
§ssn: StringPersonal number of the user to authenticate.
country: CountryCountry of the user’s Freja identity document.
callback_url: Option<Url>URL to receive the result callback on success or failure.
min_registration_level: FrejaRegistrationLevelMinimum 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 FrejaBackchannelAuthRequest
impl FrejaBackchannelAuthRequest
pub fn new( ssn: impl Into<String>, country: Country, min_registration_level: FrejaRegistrationLevel, ) -> Self
pub fn callback_url(self, url: Url) -> 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 FrejaBackchannelAuthRequest
impl Clone for FrejaBackchannelAuthRequest
Source§fn clone(&self) -> FrejaBackchannelAuthRequest
fn clone(&self) -> FrejaBackchannelAuthRequest
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 FrejaBackchannelAuthRequest
impl Debug for FrejaBackchannelAuthRequest
Auto Trait Implementations§
impl Freeze for FrejaBackchannelAuthRequest
impl RefUnwindSafe for FrejaBackchannelAuthRequest
impl Send for FrejaBackchannelAuthRequest
impl Sync for FrejaBackchannelAuthRequest
impl Unpin for FrejaBackchannelAuthRequest
impl UnsafeUnpin for FrejaBackchannelAuthRequest
impl UnwindSafe for FrejaBackchannelAuthRequest
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