[][src]Enum stripe::PaymentSourceId

pub enum PaymentSourceId {
    Account(AccountId),
    AlipayAccount(AlipayAccountId),
    BankAccount(BankAccountId),
    Card(CardId),
    Source(SourceId),
}

Variants

Account(AccountId)AlipayAccount(AlipayAccountId)BankAccount(BankAccountId)Card(CardId)Source(SourceId)

Methods

impl PaymentSourceId[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl AsRef<str> for PaymentSourceId[src]

impl Eq for PaymentSourceId[src]

impl Clone for PaymentSourceId[src]

impl PartialOrd<PaymentSourceId> for PaymentSourceId[src]

impl Ord for PaymentSourceId[src]

impl PartialEq<PaymentSourceId> for PaymentSourceId[src]

impl PartialEq<str> for PaymentSourceId[src]

impl<'_> PartialEq<&'_ str> for PaymentSourceId[src]

impl PartialEq<String> for PaymentSourceId[src]

impl From<AccountId> for PaymentSourceId[src]

impl From<AlipayAccountId> for PaymentSourceId[src]

impl From<BankAccountId> for PaymentSourceId[src]

impl From<CardId> for PaymentSourceId[src]

impl From<SourceId> for PaymentSourceId[src]

impl Hash for PaymentSourceId[src]

impl Deref for PaymentSourceId[src]

type Target = str

The resulting type after dereferencing.

impl Display for PaymentSourceId[src]

impl Debug for PaymentSourceId[src]

impl FromStr for PaymentSourceId[src]

type Err = ParseIdError

The associated error which can be returned from parsing.

impl Serialize for PaymentSourceId[src]

impl<'de> Deserialize<'de> for PaymentSourceId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self