Enum dofus_protocol::game::common::SocialApplicationState
source · #[repr(i32)]pub enum SocialApplicationState {
ApplicationAdded = 0,
ApplicationDeleted = 1,
ApplicationUpdated = 2,
}
Variants§
Implementations§
source§impl SocialApplicationState
impl SocialApplicationState
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of SocialApplicationState
.
sourcepub fn from_i32(value: i32) -> Option<SocialApplicationState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SocialApplicationState>
Converts an i32
to a SocialApplicationState
, or None
if value
is not a valid variant.
source§impl SocialApplicationState
impl SocialApplicationState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SocialApplicationState
impl Clone for SocialApplicationState
source§fn clone(&self) -> SocialApplicationState
fn clone(&self) -> SocialApplicationState
Returns a copy of the value. Read more
1.0.0 · 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 SocialApplicationState
impl Debug for SocialApplicationState
source§impl Default for SocialApplicationState
impl Default for SocialApplicationState
source§fn default() -> SocialApplicationState
fn default() -> SocialApplicationState
Returns the “default value” for a type. Read more
source§impl From<SocialApplicationState> for i32
impl From<SocialApplicationState> for i32
source§fn from(value: SocialApplicationState) -> i32
fn from(value: SocialApplicationState) -> i32
Converts to this type from the input type.
source§impl Hash for SocialApplicationState
impl Hash for SocialApplicationState
source§impl Ord for SocialApplicationState
impl Ord for SocialApplicationState
source§fn cmp(&self, other: &SocialApplicationState) -> Ordering
fn cmp(&self, other: &SocialApplicationState) -> Ordering
1.21.0 · 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 SocialApplicationState
impl PartialEq for SocialApplicationState
source§impl PartialOrd for SocialApplicationState
impl PartialOrd for SocialApplicationState
source§impl TryFrom<i32> for SocialApplicationState
impl TryFrom<i32> for SocialApplicationState
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SocialApplicationState, UnknownEnumValue>
fn try_from(value: i32) -> Result<SocialApplicationState, UnknownEnumValue>
Performs the conversion.
impl Copy for SocialApplicationState
impl Eq for SocialApplicationState
impl StructuralPartialEq for SocialApplicationState
Auto Trait Implementations§
impl Freeze for SocialApplicationState
impl RefUnwindSafe for SocialApplicationState
impl Send for SocialApplicationState
impl Sync for SocialApplicationState
impl Unpin for SocialApplicationState
impl UnwindSafe for SocialApplicationState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)