pub struct PaygateBuilder<TFacilitator> { /* private fields */ }Available on crate feature
server only.Expand description
Implementations§
Source§impl<TFacilitator> PaygateBuilder<TFacilitator>
impl<TFacilitator> PaygateBuilder<TFacilitator>
Sourcepub fn accepts(self, price_tags: impl IntoIterator<Item = PriceTag>) -> Self
pub fn accepts(self, price_tags: impl IntoIterator<Item = PriceTag>) -> Self
Adds multiple accepted payment options.
Sourcepub fn resource(self, resource: ResourceInfo) -> Self
pub fn resource(self, resource: ResourceInfo) -> Self
Sets the resource metadata returned in 402 responses.
Auto Trait Implementations§
impl<TFacilitator> Freeze for PaygateBuilder<TFacilitator>where
TFacilitator: Freeze,
impl<TFacilitator> !RefUnwindSafe for PaygateBuilder<TFacilitator>
impl<TFacilitator> Send for PaygateBuilder<TFacilitator>where
TFacilitator: Send,
impl<TFacilitator> Sync for PaygateBuilder<TFacilitator>where
TFacilitator: Sync,
impl<TFacilitator> Unpin for PaygateBuilder<TFacilitator>where
TFacilitator: Unpin,
impl<TFacilitator> !UnwindSafe for PaygateBuilder<TFacilitator>
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