#[repr(i32)]pub enum SocialGroupOperationResult {
SocialGroupOperationOk = 0,
SocialGroupErrorNameInvalid = 1,
SocialGroupErrorAlreadyInGroup = 2,
SocialGroupErrorNameAlreadyExists = 3,
SocialGroupErrorLeave = 4,
SocialGroupErrorCancel = 5,
SocialGroupErrorRequirementUnmet = 6,
SocialGroupErrorEmblemInvalid = 7,
SocialGroupErrorTagInvalid = 8,
SocialGroupErrorTagAlreadyExists = 9,
SocialGroupErrorUnknown = 10,
}
Variants§
SocialGroupOperationOk = 0
SocialGroupErrorNameInvalid = 1
SocialGroupErrorAlreadyInGroup = 2
SocialGroupErrorNameAlreadyExists = 3
SocialGroupErrorLeave = 4
SocialGroupErrorCancel = 5
SocialGroupErrorRequirementUnmet = 6
SocialGroupErrorEmblemInvalid = 7
SocialGroupErrorTagInvalid = 8
SocialGroupErrorTagAlreadyExists = 9
SocialGroupErrorUnknown = 10
Implementations§
source§impl SocialGroupOperationResult
impl SocialGroupOperationResult
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of SocialGroupOperationResult
.
sourcepub fn from_i32(value: i32) -> Option<SocialGroupOperationResult>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SocialGroupOperationResult>
Converts an i32
to a SocialGroupOperationResult
, or None
if value
is not a valid variant.
source§impl SocialGroupOperationResult
impl SocialGroupOperationResult
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 SocialGroupOperationResult
impl Clone for SocialGroupOperationResult
source§fn clone(&self) -> SocialGroupOperationResult
fn clone(&self) -> SocialGroupOperationResult
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 SocialGroupOperationResult
impl Debug for SocialGroupOperationResult
source§impl Default for SocialGroupOperationResult
impl Default for SocialGroupOperationResult
source§fn default() -> SocialGroupOperationResult
fn default() -> SocialGroupOperationResult
Returns the “default value” for a type. Read more
source§impl From<SocialGroupOperationResult> for i32
impl From<SocialGroupOperationResult> for i32
source§fn from(value: SocialGroupOperationResult) -> i32
fn from(value: SocialGroupOperationResult) -> i32
Converts to this type from the input type.
source§impl Hash for SocialGroupOperationResult
impl Hash for SocialGroupOperationResult
source§impl Ord for SocialGroupOperationResult
impl Ord for SocialGroupOperationResult
source§fn cmp(&self, other: &SocialGroupOperationResult) -> Ordering
fn cmp(&self, other: &SocialGroupOperationResult) -> 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 PartialOrd for SocialGroupOperationResult
impl PartialOrd for SocialGroupOperationResult
source§impl TryFrom<i32> for SocialGroupOperationResult
impl TryFrom<i32> for SocialGroupOperationResult
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SocialGroupOperationResult, UnknownEnumValue>
fn try_from(value: i32) -> Result<SocialGroupOperationResult, UnknownEnumValue>
Performs the conversion.
impl Copy for SocialGroupOperationResult
impl Eq for SocialGroupOperationResult
impl StructuralPartialEq for SocialGroupOperationResult
Auto Trait Implementations§
impl Freeze for SocialGroupOperationResult
impl RefUnwindSafe for SocialGroupOperationResult
impl Send for SocialGroupOperationResult
impl Sync for SocialGroupOperationResult
impl Unpin for SocialGroupOperationResult
impl UnwindSafe for SocialGroupOperationResult
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
)