Flag

Contribution flags.

On this page

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#

VariantWire valueMeaning
ViaPatreonvia_patreonA GitHub sponsorship paid through Patreon.
Otherany other valueA 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) -> &str

The wire spelling.

Returns: &str

Trait implementations#

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