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#
| Variant | Wire value | Meaning |
|---|---|---|
Active | active | A running recurring contribution. |
Paused | paused | A paused recurring contribution. |
Cancelled | cancelled | A cancelled or expired recurring contribution. |
Paid | paid | A completed one-time contribution. |
Refunded | refunded | Refunded. |
Disputed | disputed | Disputed. |
Failed | failed | Failed or rejected. |
Pending | pending | Not completed yet. |
Other | any other value | A 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.
Paid#
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) -> &strThe wire spelling.
Returns: &str
Trait implementations#
impl Display for Statusimpl From<&str> for Statusimpl Serialize for Statusimpl<'de> Deserialize<'de> for Status