Struct stripe::CreateAccountLink
source · [−]pub struct CreateAccountLink<'a> {
pub account: AccountId,
pub collect: Option<AccountLinkCollect>,
pub expand: &'a [&'a str],
pub refresh_url: Option<&'a str>,
pub return_url: Option<&'a str>,
pub type_: AccountLinkType,
}
Expand description
The parameters for AccountLink::create
.
Fields
account: AccountId
The identifier of the account to create an account link for.
collect: Option<AccountLinkCollect>
Which information the platform needs to collect from the user.
One of currently_due
or eventually_due
.
Default is currently_due
.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
refresh_url: Option<&'a str>
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid.
The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link’s URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
return_url: Option<&'a str>
The URL that the user will be redirected to upon leaving or completing the linked flow.
type_: AccountLinkType
The type of account link the user is requesting.
Possible values are account_onboarding
or account_update
.
Implementations
sourceimpl<'a> CreateAccountLink<'a>
impl<'a> CreateAccountLink<'a>
pub fn new(account: AccountId, type_: AccountLinkType) -> Self
Trait Implementations
sourceimpl<'a> Clone for CreateAccountLink<'a>
impl<'a> Clone for CreateAccountLink<'a>
sourcefn clone(&self) -> CreateAccountLink<'a>
fn clone(&self) -> CreateAccountLink<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CreateAccountLink<'a>
impl<'a> Debug for CreateAccountLink<'a>
sourceimpl<'a> Serialize for CreateAccountLink<'a>
impl<'a> Serialize for CreateAccountLink<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateAccountLink<'a>
impl<'a> Send for CreateAccountLink<'a>
impl<'a> Sync for CreateAccountLink<'a>
impl<'a> Unpin for CreateAccountLink<'a>
impl<'a> UnwindSafe for CreateAccountLink<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more