pub struct VippsAuthRequest {
pub redirect_url: Option<Url>,
pub request_ssn: Option<bool>,
pub request_phone: Option<bool>,
pub request_email: Option<bool>,
pub request_address: Option<bool>,
pub ref_id: Option<String>,
pub app_callback_uri: Option<Url>,
}Expand description
Request body for starting a Vipps MobilePay authentication session.
Fields§
§redirect_url: Option<Url>URL to redirect the user to after completing the flow.
request_ssn: Option<bool>Request the user’s Norwegian personal number.
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.
app_callback_uri: Option<Url>(BETA) Deep-link URI to return the user to your app after authentication.
Implementations§
Source§impl VippsAuthRequest
impl VippsAuthRequest
pub fn new() -> Self
pub fn redirect_url(self, url: Url) -> Self
pub fn request_ssn(self, v: bool) -> 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
pub fn app_callback_uri(self, uri: Url) -> Self
Trait Implementations§
Source§impl Clone for VippsAuthRequest
impl Clone for VippsAuthRequest
Source§fn clone(&self) -> VippsAuthRequest
fn clone(&self) -> VippsAuthRequest
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 VippsAuthRequest
impl Debug for VippsAuthRequest
Source§impl Default for VippsAuthRequest
impl Default for VippsAuthRequest
Source§fn default() -> VippsAuthRequest
fn default() -> VippsAuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VippsAuthRequest
impl RefUnwindSafe for VippsAuthRequest
impl Send for VippsAuthRequest
impl Sync for VippsAuthRequest
impl Unpin for VippsAuthRequest
impl UnsafeUnpin for VippsAuthRequest
impl UnwindSafe for VippsAuthRequest
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