pub enum TransactionSource {
StripeTopup,
CouponRedemption,
AdminGrant,
VmLeaseDebit,
Refund,
}Expand description
What produced the entry.
JSON schema
{
"description": "What produced the entry.",
"type": "string",
"enum": [
"stripe_topup",
"coupon_redemption",
"admin_grant",
"vm_lease_debit",
"refund"
]
}Variants§
Trait Implementations§
Source§impl Clone for TransactionSource
impl Clone for TransactionSource
Source§fn clone(&self) -> TransactionSource
fn clone(&self) -> TransactionSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionSource
Source§impl Debug for TransactionSource
impl Debug for TransactionSource
Source§impl<'de> Deserialize<'de> for TransactionSource
impl<'de> Deserialize<'de> for TransactionSource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TransactionSource
impl Display for TransactionSource
impl Eq for TransactionSource
Source§impl FromStr for TransactionSource
impl FromStr for TransactionSource
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<TransactionSource, ConversionError>
fn from_str(value: &str) -> Result<TransactionSource, ConversionError>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for TransactionSource
impl Hash for TransactionSource
Source§impl Ord for TransactionSource
impl Ord for TransactionSource
Source§fn cmp(&self, other: &TransactionSource) -> Ordering
fn cmp(&self, other: &TransactionSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransactionSource
impl PartialEq for TransactionSource
Source§fn eq(&self, other: &TransactionSource) -> bool
fn eq(&self, other: &TransactionSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TransactionSource
impl PartialOrd for TransactionSource
Source§impl Serialize for TransactionSource
impl Serialize for TransactionSource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl StructuralPartialEq for TransactionSource
Source§impl TryFrom<&String> for TransactionSource
impl TryFrom<&String> for TransactionSource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &String) -> Result<TransactionSource, ConversionError>
fn try_from(value: &String) -> Result<TransactionSource, ConversionError>
Performs the conversion.
Source§impl TryFrom<&str> for TransactionSource
impl TryFrom<&str> for TransactionSource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> Result<TransactionSource, ConversionError>
fn try_from(value: &str) -> Result<TransactionSource, ConversionError>
Performs the conversion.
Source§impl TryFrom<String> for TransactionSource
impl TryFrom<String> for TransactionSource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> Result<TransactionSource, ConversionError>
fn try_from(value: String) -> Result<TransactionSource, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TransactionSource
impl RefUnwindSafe for TransactionSource
impl Send for TransactionSource
impl Sync for TransactionSource
impl Unpin for TransactionSource
impl UnsafeUnpin for TransactionSource
impl UnwindSafe for TransactionSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more