pub struct StartRequestBuilder { /* private fields */ }Expand description
Step-builder for StartRequest.
Implementations§
Source§impl StartRequestBuilder
impl StartRequestBuilder
Sourcepub fn description(self, d: impl Into<String>) -> Self
pub fn description(self, d: impl Into<String>) -> Self
Set the description (required).
Sourcepub fn callback_url(self, url: impl Into<String>) -> Self
pub fn callback_url(self, url: impl Into<String>) -> Self
Set the callback URL (required).
Sourcepub fn order_id(self, id: impl Into<String>) -> Self
pub fn order_id(self, id: impl Into<String>) -> Self
Set the merchant order ID (optional but recommended).
Sourcepub fn extra(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn extra(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add a single provider-specific extra metadata key/value.
Sourcepub fn build(self) -> StartRequest
pub fn build(self) -> StartRequest
Build the request. Panics if amount, description, or
callback_url were not set — these are always required by every
supported gateway.
Trait Implementations§
Source§impl Debug for StartRequestBuilder
impl Debug for StartRequestBuilder
Source§impl Default for StartRequestBuilder
impl Default for StartRequestBuilder
Source§fn default() -> StartRequestBuilder
fn default() -> StartRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StartRequestBuilder
impl RefUnwindSafe for StartRequestBuilder
impl Send for StartRequestBuilder
impl Sync for StartRequestBuilder
impl Unpin for StartRequestBuilder
impl UnsafeUnpin for StartRequestBuilder
impl UnwindSafe for StartRequestBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more