pub enum TierOutcome {
Claimed {
message: String,
},
AlreadyHeld {
message: String,
},
Refused {
message: String,
},
Errored {
error: String,
},
}Expand description
Per-tier outcome captured while step_claim walks the cascade.
Surfaces in SetupReport::render as one row per attempted tier so
the user can see exactly why the cascade stopped where it did — a
single “claim failed: Lite: 暂无开放” line hid the Max / Pro tier
rejections users wanted to see.
Variants§
Claimed
success=true on this tier — cascade winner.
AlreadyHeld
duplicate=true — user already held this (or a higher) tier;
cascade treats this as winner and stops.
Refused
2xx success=false duplicate=false — per-tier refusal (e.g.
额度已满 / 暂无开放). Cascade walks past to the next tier.
Errored
Transport / 5xx / parse failure. Cascade aborts.
Trait Implementations§
Source§impl Clone for TierOutcome
impl Clone for TierOutcome
Source§fn clone(&self) -> TierOutcome
fn clone(&self) -> TierOutcome
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 Freeze for TierOutcome
impl RefUnwindSafe for TierOutcome
impl Send for TierOutcome
impl Sync for TierOutcome
impl Unpin for TierOutcome
impl UnsafeUnpin for TierOutcome
impl UnwindSafe for TierOutcome
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> 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