#[non_exhaustive]pub struct StripeOptions { /* private fields */ }Implementations§
Source§impl StripeOptions
impl StripeOptions
pub fn new( stripe_client: StripeClient, stripe_webhook_secret: impl Into<String>, ) -> Self
Sourcepub fn dev() -> Self
pub fn dev() -> Self
Development only — do not use in production.
Uses a no-op HTTP transport and the placeholder webhook secret whsec_dev.
pub fn create_customer_on_sign_up(self, enabled: bool) -> Self
pub fn subscription(self, subscription: SubscriptionOptions) -> Self
pub fn organization(self, organization: OrganizationStripeOptions) -> Self
pub fn schema(self, contribution: PluginSchemaContribution) -> Self
pub fn on_event<F, Fut>(self, hook: F) -> Selfwhere
F: Fn(StripeEvent) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<(), RustAuthError>> + Send + 'static,
pub fn on_customer_create<F, Fut>(self, hook: F) -> Selfwhere
F: Fn(CustomerCreateInput, CustomerCreateContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<(), RustAuthError>> + Send + 'static,
pub fn get_customer_create_params<F, Fut>(self, hook: F) -> Selfwhere
F: Fn(CustomerCreateParamsInput, CustomerCreateContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Value, RustAuthError>> + Send + 'static,
pub fn to_metadata(&self) -> Value
Trait Implementations§
Source§impl Clone for StripeOptions
impl Clone for StripeOptions
Source§fn clone(&self) -> StripeOptions
fn clone(&self) -> StripeOptions
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for StripeOptions
impl !UnwindSafe for StripeOptions
impl Freeze for StripeOptions
impl Send for StripeOptions
impl Sync for StripeOptions
impl Unpin for StripeOptions
impl UnsafeUnpin for StripeOptions
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