pub struct VippsBackchannelAuthRequest {
pub phone: String,
pub request_ssn: Option<bool>,
pub request_email: Option<bool>,
pub request_address: Option<bool>,
pub callback_url: Option<Url>,
pub ref_id: Option<String>,
}Expand description
Request body for starting a Vipps MobilePay backchannel authentication session.
Fields§
§phone: StringPhone number of the user to authenticate.
request_ssn: Option<bool>Request the user’s Norwegian personal number.
request_email: Option<bool>Request the user’s email address.
request_address: Option<bool>Request the user’s registered address.
callback_url: Option<Url>URL to receive the result callback on success or failure.
ref_id: Option<String>Reference ID returned verbatim in the result and callback.
Implementations§
Source§impl VippsBackchannelAuthRequest
impl VippsBackchannelAuthRequest
pub fn new(phone: impl Into<String>) -> Self
pub fn request_ssn(self, v: bool) -> Self
pub fn request_email(self, v: bool) -> Self
pub fn request_address(self, v: bool) -> Self
pub fn callback_url(self, url: Url) -> Self
pub fn ref_id(self, ref_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for VippsBackchannelAuthRequest
impl Clone for VippsBackchannelAuthRequest
Source§fn clone(&self) -> VippsBackchannelAuthRequest
fn clone(&self) -> VippsBackchannelAuthRequest
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 VippsBackchannelAuthRequest
impl Debug for VippsBackchannelAuthRequest
Auto Trait Implementations§
impl Freeze for VippsBackchannelAuthRequest
impl RefUnwindSafe for VippsBackchannelAuthRequest
impl Send for VippsBackchannelAuthRequest
impl Sync for VippsBackchannelAuthRequest
impl Unpin for VippsBackchannelAuthRequest
impl UnsafeUnpin for VippsBackchannelAuthRequest
impl UnwindSafe for VippsBackchannelAuthRequest
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