MockPreset
A built-in mock preset.
On this page
A built-in mock preset.
use sponsorkit::MockPreset;
pub enum MockPreset {
SignedOut,
None,
ActiveMonthly,
OneTime,
Cancelled,
Org,
}Variants#
| Variant | Wire value | Meaning |
|---|---|---|
SignedOut | signed-out | Signed out. |
None | none | Signed in, no contributions. |
ActiveMonthly | active-monthly | An active $5/month contribution. |
OneTime | one-time | A paid $25 one-time contribution. |
Cancelled | cancelled | A cancelled monthly contribution. |
Org | org | An active $10/month contribution through an organization. |
SignedOut#
Wire value: signed-out
Signed out.
None#
Wire value: none
Signed in, no contributions.
ActiveMonthly#
Wire value: active-monthly
An active $5/month contribution.
OneTime#
Wire value: one-time
A paid $25 one-time contribution.
Cancelled#
Wire value: cancelled
A cancelled monthly contribution.
Org#
Wire value: org
An active $10/month contribution through an organization.
Associated constants#
ALL#
pub const ALL: [MockPreset; 6] = [
MockPreset::SignedOut,
MockPreset::None,
MockPreset::ActiveMonthly,
MockPreset::OneTime,
MockPreset::Cancelled,
MockPreset::Org,
];All presets.
Methods#
as_str#
pub fn as_str(self) -> &'static strThe preset name, e.g. "active-monthly".
Returns: &'static str
Trait implementations#
impl Clone for MockPresetimpl Copy for MockPresetimpl Debug for MockPresetimpl Display for MockPresetimpl Eq for MockPresetimpl FromStr for MockPresetimpl Hash for MockPresetimpl PartialEq for MockPreset