Flag
Contribution flags.
Contribution flags.
use sponsorkit::Flag;
#[non_exhaustive]
pub enum Flag {
ViaPatreon,
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 |
|---|---|---|
ViaPatreon | via_patreon | A GitHub sponsorship paid through Patreon. |
Other | any other value | A value this version of the SDK does not know yet (kept verbatim). |
ViaPatreon#
Wire value: via_patreon
A GitHub sponsorship paid through Patreon.
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 Flagimpl From<&str> for Flagimpl Serialize for Flagimpl<'de> Deserialize<'de> for Flag