Status

Contribution status.

On this page

Contribution status.

use sponsorkit::Status;

#[non_exhaustive]
pub enum Status {
    Active,
    Paused,
    Cancelled,
    Paid,
    Refunded,
    Disputed,
    Failed,
    Pending,
    Other(String),
}

Non-exhaustive

This enum is #[non_exhaustive]: new variants may be added in a minor release, so a match on it needs a wildcard (_) arm.

Variants#

VariantWire valueMeaning
ActiveactiveA running recurring contribution.
PausedpausedA paused recurring contribution.
CancelledcancelledA cancelled or expired recurring contribution.
PaidpaidA completed one-time contribution.
RefundedrefundedRefunded.
DisputeddisputedDisputed.
FailedfailedFailed or rejected.
PendingpendingNot completed yet.
Otherany other valueA value this version of the SDK does not know yet (kept verbatim).

Active#

Wire value: active

A running recurring contribution.

Paused#

Wire value: paused

A paused recurring contribution.

Cancelled#

Wire value: cancelled

A cancelled or expired recurring contribution.

Wire value: paid

A completed one-time contribution.

Refunded#

Wire value: refunded

Refunded.

Disputed#

Wire value: disputed

Disputed.

Failed#

Wire value: failed

Failed or rejected.

Pending#

Wire value: pending

Not completed yet.

Other#

Other(String)

Wire value: any value not listed above.

A value this version of the SDK does not know yet (kept verbatim).

Methods#

as_str#

pub fn as_str(&self) -> &str

The wire spelling.

Returns: &str

Trait implementations#

  • impl Display for Status
  • impl From<&str> for Status
  • impl Serialize for Status
  • impl<'de> Deserialize<'de> for Status