pub struct SubscriptionEnrollmentOfferContext<'a> { /* private fields */ }Expand description
Stable identity and lifecycle context for locking an enrollment offer.
The PostgreSQL enrollment pipeline constructs this value from one
SubscriptionEnrollmentReservation and passes the same scope,
subscriber, plan, attempt, and idempotency identity at both stages. A host
implementation that derives eligibility from payment-attempt history must
exclude Self::attempt_id so the in-flight reservation cannot disqualify
itself during submission admission.
Implementations§
Source§impl<'a> SubscriptionEnrollmentOfferContext<'a>
impl<'a> SubscriptionEnrollmentOfferContext<'a>
pub const fn billing_scope_id(self) -> BillingScopeId
pub const fn subscriber_id(self) -> SubscriberId
pub const fn plan_key(self) -> &'a PlanKey
pub const fn attempt_id(self) -> PaymentAttemptId
pub const fn idempotency_key(self) -> &'a IdempotencyKey
pub const fn stage(self) -> SubscriptionEnrollmentOfferStage
Trait Implementations§
Source§impl<'a> Clone for SubscriptionEnrollmentOfferContext<'a>
impl<'a> Clone for SubscriptionEnrollmentOfferContext<'a>
Source§fn clone(&self) -> SubscriptionEnrollmentOfferContext<'a>
fn clone(&self) -> SubscriptionEnrollmentOfferContext<'a>
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 moreimpl<'a> Copy for SubscriptionEnrollmentOfferContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubscriptionEnrollmentOfferContext<'a>
impl<'a> RefUnwindSafe for SubscriptionEnrollmentOfferContext<'a>
impl<'a> Send for SubscriptionEnrollmentOfferContext<'a>
impl<'a> Sync for SubscriptionEnrollmentOfferContext<'a>
impl<'a> Unpin for SubscriptionEnrollmentOfferContext<'a>
impl<'a> UnsafeUnpin for SubscriptionEnrollmentOfferContext<'a>
impl<'a> UnwindSafe for SubscriptionEnrollmentOfferContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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