Enum ApiVersion

Source
#[non_exhaustive]
pub enum ApiVersion {
Show 112 variants V2011_01_01, V2011_06_21, V2011_06_28, V2011_08_01, V2011_09_15, V2011_11_17, V2012_02_23, V2012_03_25, V2012_06_18, V2012_06_28, V2012_07_09, V2012_09_24, V2012_10_26, V2012_11_07, V2013_02_11, V2013_02_13, V2013_07_05, V2013_08_12, V2013_08_13, V2013_10_29, V2013_12_03, V2014_01_31, V2014_03_13, V2014_03_28, V2014_05_19, V2014_06_13, V2014_06_17, V2014_07_22, V2014_07_26, V2014_08_04, V2014_08_20, V2014_09_08, V2014_10_07, V2014_11_05, V2014_11_20, V2014_12_08, V2014_12_17, V2014_12_22, V2015_01_11, V2015_01_26, V2015_02_10, V2015_02_16, V2015_02_18, V2015_03_24, V2015_04_07, V2015_06_15, V2015_07_07, V2015_07_13, V2015_07_28, V2015_08_07, V2015_08_19, V2015_09_03, V2015_09_08, V2015_09_23, V2015_10_01, V2015_10_12, V2015_10_16, V2016_02_03, V2016_02_19, V2016_02_22, V2016_02_23, V2016_02_29, V2016_03_07, V2016_06_15, V2016_07_06, V2016_10_19, V2017_01_27, V2017_02_14, V2017_04_06, V2017_05_25, V2017_06_05, V2017_08_15, V2017_12_14, V2018_01_23, V2018_02_05, V2018_02_06, V2018_02_28, V2018_05_21, V2018_07_27, V2018_08_23, V2018_09_06, V2018_09_24, V2018_10_31, V2018_11_08, V2019_02_11, V2019_02_19, V2019_03_14, V2019_05_16, V2019_08_14, V2019_09_09, V2019_10_08, V2019_10_17, V2019_11_05, V2019_12_03, V2020_03_02, V2020_08_27, V2022_08_01, V2022_11_15, V2023_08_16, V2023_10_16, V2024_04_10, V2024_06_20, V2024_09_30_acacia, V2024_10_28_acacia, V2024_11_20_acacia, V2024_12_18_acacia, V2025_01_27_acacia, V2025_02_24_acacia, V2025_03_01_dashboard, V2025_03_31_basil, V2025_04_30_basil, Unknown(String),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

V2011_01_01

§

V2011_06_21

§

V2011_06_28

§

V2011_08_01

§

V2011_09_15

§

V2011_11_17

§

V2012_02_23

§

V2012_03_25

§

V2012_06_18

§

V2012_06_28

§

V2012_07_09

§

V2012_09_24

§

V2012_10_26

§

V2012_11_07

§

V2013_02_11

§

V2013_02_13

§

V2013_07_05

§

V2013_08_12

§

V2013_08_13

§

V2013_10_29

§

V2013_12_03

§

V2014_01_31

§

V2014_03_13

§

V2014_03_28

§

V2014_05_19

§

V2014_06_13

§

V2014_06_17

§

V2014_07_22

§

V2014_07_26

§

V2014_08_04

§

V2014_08_20

§

V2014_09_08

§

V2014_10_07

§

V2014_11_05

§

V2014_11_20

§

V2014_12_08

§

V2014_12_17

§

V2014_12_22

§

V2015_01_11

§

V2015_01_26

§

V2015_02_10

§

V2015_02_16

§

V2015_02_18

§

V2015_03_24

§

V2015_04_07

§

V2015_06_15

§

V2015_07_07

§

V2015_07_13

§

V2015_07_28

§

V2015_08_07

§

V2015_08_19

§

V2015_09_03

§

V2015_09_08

§

V2015_09_23

§

V2015_10_01

§

V2015_10_12

§

V2015_10_16

§

V2016_02_03

§

V2016_02_19

§

V2016_02_22

§

V2016_02_23

§

V2016_02_29

§

V2016_03_07

§

V2016_06_15

§

V2016_07_06

§

V2016_10_19

§

V2017_01_27

§

V2017_02_14

§

V2017_04_06

§

V2017_05_25

§

V2017_06_05

§

V2017_08_15

§

V2017_12_14

§

V2018_01_23

§

V2018_02_05

§

V2018_02_06

§

V2018_02_28

§

V2018_05_21

§

V2018_07_27

§

V2018_08_23

§

V2018_09_06

§

V2018_09_24

§

V2018_10_31

§

V2018_11_08

§

V2019_02_11

§

V2019_02_19

§

V2019_03_14

§

V2019_05_16

§

V2019_08_14

§

V2019_09_09

§

V2019_10_08

§

V2019_10_17

§

V2019_11_05

§

V2019_12_03

§

V2020_03_02

§

V2020_08_27

§

V2022_08_01

§

V2022_11_15

§

V2023_08_16

§

V2023_10_16

§

V2024_04_10

§

V2024_06_20

§

V2024_09_30_acacia

§

V2024_10_28_acacia

§

V2024_11_20_acacia

§

V2024_12_18_acacia

§

V2025_01_27_acacia

§

V2025_02_24_acacia

§

V2025_03_01_dashboard

§

V2025_03_31_basil

§

V2025_04_30_basil

§

Unknown(String)

An unrecognized value from Stripe. Should not be used as a request parameter.

Implementations§

Source§

impl ApiVersion

Source

pub fn as_str(&self) -> &str

Trait Implementations§

Source§

impl Clone for ApiVersion

Source§

fn clone(&self) -> ApiVersion

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ApiVersion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deserialize for ApiVersion

Source§

fn begin(out: &mut Option<ApiVersion>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl Display for ApiVersion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl FromStr for ApiVersion

Source§

type Err = Infallible

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<ApiVersion, <ApiVersion as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for ApiVersion

Source§

fn eq(&self, other: &ApiVersion) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ApiVersion

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for ApiVersion

Source§

impl StructuralPartialEq for ApiVersion

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more