#[repr(i32)]pub enum PartnerAccountType {
PartnerNone = 0,
PartnerPerfectWorld = 1,
PartnerInvalid = 3,
}Variants§
Implementations§
Source§impl PartnerAccountType
impl PartnerAccountType
Sourcepub fn from_i32(value: i32) -> Option<PartnerAccountType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PartnerAccountType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a PartnerAccountType, or None if value is not a valid variant.
Trait Implementations§
Source§impl Clone for PartnerAccountType
impl Clone for PartnerAccountType
Source§fn clone(&self) -> PartnerAccountType
fn clone(&self) -> PartnerAccountType
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 moreSource§impl Debug for PartnerAccountType
impl Debug for PartnerAccountType
Source§impl Default for PartnerAccountType
impl Default for PartnerAccountType
Source§fn default() -> PartnerAccountType
fn default() -> PartnerAccountType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartnerAccountType
impl<'de> Deserialize<'de> for PartnerAccountType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PartnerAccountType> for i32
impl From<PartnerAccountType> for i32
Source§fn from(value: PartnerAccountType) -> i32
fn from(value: PartnerAccountType) -> i32
Converts to this type from the input type.
Source§impl Hash for PartnerAccountType
impl Hash for PartnerAccountType
Source§impl Ord for PartnerAccountType
impl Ord for PartnerAccountType
Source§fn cmp(&self, other: &PartnerAccountType) -> Ordering
fn cmp(&self, other: &PartnerAccountType) -> 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 PartnerAccountType
impl PartialEq for PartnerAccountType
Source§fn eq(&self, other: &PartnerAccountType) -> bool
fn eq(&self, other: &PartnerAccountType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PartnerAccountType
impl PartialOrd for PartnerAccountType
Source§impl Serialize for PartnerAccountType
impl Serialize for PartnerAccountType
Source§impl TryFrom<i32> for PartnerAccountType
impl TryFrom<i32> for PartnerAccountType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PartnerAccountType, UnknownEnumValue>
fn try_from(value: i32) -> Result<PartnerAccountType, UnknownEnumValue>
Performs the conversion.
impl Copy for PartnerAccountType
impl Eq for PartnerAccountType
impl StructuralPartialEq for PartnerAccountType
Auto Trait Implementations§
impl Freeze for PartnerAccountType
impl RefUnwindSafe for PartnerAccountType
impl Send for PartnerAccountType
impl Sync for PartnerAccountType
impl Unpin for PartnerAccountType
impl UnsafeUnpin for PartnerAccountType
impl UnwindSafe for PartnerAccountType
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