pub struct FrejaBackchannelSignRequest {
pub ssn: String,
pub country: Country,
pub text: 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 backchannel signing session.
Fields§
§ssn: StringPersonal number of the user to sign.
country: CountryCountry of the user’s Freja identity document.
text: StringText to sign, displayed to the user in the Freja app.
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 FrejaBackchannelSignRequest
impl FrejaBackchannelSignRequest
pub fn new( ssn: impl Into<String>, country: Country, text: 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 FrejaBackchannelSignRequest
impl Clone for FrejaBackchannelSignRequest
Source§fn clone(&self) -> FrejaBackchannelSignRequest
fn clone(&self) -> FrejaBackchannelSignRequest
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 FrejaBackchannelSignRequest
impl Debug for FrejaBackchannelSignRequest
Auto Trait Implementations§
impl Freeze for FrejaBackchannelSignRequest
impl RefUnwindSafe for FrejaBackchannelSignRequest
impl Send for FrejaBackchannelSignRequest
impl Sync for FrejaBackchannelSignRequest
impl Unpin for FrejaBackchannelSignRequest
impl UnsafeUnpin for FrejaBackchannelSignRequest
impl UnwindSafe for FrejaBackchannelSignRequest
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