Mock

Mock data for crate::Options::mock.

On this page

Mock data for crate::Options::mock.

use sponsorkit::Mock;

pub enum Mock {
    Preset(MockPreset),
    Contributions(Vec<Contribution>),
}

Variants#

VariantMeaning
PresetOne of the built-in presets.
ContributionsSigned in with exactly these contributions (not rewritten).

Preset#

Preset(MockPreset)

One of the built-in presets.

Contributions#

Contributions(Vec<Contribution>)

Signed in with exactly these contributions (not rewritten).

Trait implementations#

  • impl Clone for Mock
  • impl Debug for Mock
  • impl From<MockPreset> for Mock
  • impl PartialEq for Mock