#[repr(i32)]pub enum SignupInviteOwnerStatus {
Unspecified = 0,
Open = 1,
Consumed = 2,
}Expand description
Owner-view lifecycle of an invite listed by its creator. Distinct from SignupInviteResolutionStatus, which is the public code-resolution projection and folds unknown, malformed, and revoked codes into EXPIRED: an owner listing always refers to a live row, so it needs only open versus consumed.
Variants§
Implementations§
Source§impl SignupInviteOwnerStatus
impl SignupInviteOwnerStatus
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of SignupInviteOwnerStatus.
Sourcepub fn from_i32(value: i32) -> Option<SignupInviteOwnerStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SignupInviteOwnerStatus>
Use the TryFrom<i32> implementation instead
Converts an i32 to a SignupInviteOwnerStatus, or None if value is not a valid variant.
Source§impl SignupInviteOwnerStatus
impl SignupInviteOwnerStatus
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 SignupInviteOwnerStatus
impl Clone for SignupInviteOwnerStatus
Source§fn clone(&self) -> SignupInviteOwnerStatus
fn clone(&self) -> SignupInviteOwnerStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more