pub struct CheckoutInput {
pub purchase: Purchase,
pub success_url: String,
pub cancel_url: String,
}Expand description
Browser-safe Checkout input for crate::BillingRouter.
Identity is intentionally absent and is derived from the authenticated Principal.
Fields§
§purchase: PurchaseSubscription tier or credit pack to purchase.
success_url: StringAllowlisted URL used after successful Checkout.
cancel_url: StringAllowlisted URL used when Checkout is canceled.
Trait Implementations§
Source§impl Clone for CheckoutInput
impl Clone for CheckoutInput
Source§impl Debug for CheckoutInput
impl Debug for CheckoutInput
Source§impl<'de> Deserialize<'de> for CheckoutInput
impl<'de> Deserialize<'de> for CheckoutInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckoutInput
impl RefUnwindSafe for CheckoutInput
impl Send for CheckoutInput
impl Sync for CheckoutInput
impl Unpin for CheckoutInput
impl UnsafeUnpin for CheckoutInput
impl UnwindSafe for CheckoutInput
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