pub struct MitIdAuthRequest {
pub redirect_url: Option<Url>,
pub reference_text: Option<String>,
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 MitID authentication session.
Fields§
§redirect_url: Option<Url>URL to redirect the user to after completing the flow.
reference_text: Option<String>Text shown to the user during authentication. Must not contain % or < (max 130 chars).
request_phone: Option<bool>Request the user’s phone number.
request_email: Option<bool>Request the user’s email address.
request_address: Option<bool>Request the user’s registered address.
ref_id: Option<String>Reference ID returned verbatim in the result and callback.
Implementations§
Source§impl MitIdAuthRequest
impl MitIdAuthRequest
pub fn new() -> Self
pub fn redirect_url(self, url: Url) -> Self
pub fn reference_text(self, v: impl Into<String>) -> 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 MitIdAuthRequest
impl Clone for MitIdAuthRequest
Source§fn clone(&self) -> MitIdAuthRequest
fn clone(&self) -> MitIdAuthRequest
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 MitIdAuthRequest
impl Debug for MitIdAuthRequest
Source§impl Default for MitIdAuthRequest
impl Default for MitIdAuthRequest
Source§fn default() -> MitIdAuthRequest
fn default() -> MitIdAuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MitIdAuthRequest
impl RefUnwindSafe for MitIdAuthRequest
impl Send for MitIdAuthRequest
impl Sync for MitIdAuthRequest
impl Unpin for MitIdAuthRequest
impl UnsafeUnpin for MitIdAuthRequest
impl UnwindSafe for MitIdAuthRequest
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