#[non_exhaustive]pub enum InvitationCreatedDataState {
Pending,
Accepted,
Expired,
Revoked,
Unknown(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pending
Accepted
Expired
Revoked
Unknown(String)
Wire value not recognized by this SDK version. The original string is preserved verbatim. WorkOS may add new enum values server-side; matching on this variant lets callers handle forward-compatible values without panicking.
Implementations§
Source§impl InvitationCreatedDataState
impl InvitationCreatedDataState
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Canonical wire string for this value. For Self::Unknown returns the
original wire value as received from the API.
Trait Implementations§
Source§impl AsRef<str> for InvitationCreatedDataState
impl AsRef<str> for InvitationCreatedDataState
Source§impl Clone for InvitationCreatedDataState
impl Clone for InvitationCreatedDataState
Source§fn clone(&self) -> InvitationCreatedDataState
fn clone(&self) -> InvitationCreatedDataState
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 InvitationCreatedDataState
impl Debug for InvitationCreatedDataState
Source§impl<'de> Deserialize<'de> for InvitationCreatedDataState
impl<'de> Deserialize<'de> for InvitationCreatedDataState
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InvitationCreatedDataState
impl Display for InvitationCreatedDataState
impl Eq for InvitationCreatedDataState
Source§impl From<&str> for InvitationCreatedDataState
impl From<&str> for InvitationCreatedDataState
Source§impl From<String> for InvitationCreatedDataState
impl From<String> for InvitationCreatedDataState
Source§impl FromStr for InvitationCreatedDataState
impl FromStr for InvitationCreatedDataState
Source§impl Hash for InvitationCreatedDataState
impl Hash for InvitationCreatedDataState
impl StructuralPartialEq for InvitationCreatedDataState
Auto Trait Implementations§
impl Freeze for InvitationCreatedDataState
impl RefUnwindSafe for InvitationCreatedDataState
impl Send for InvitationCreatedDataState
impl Sync for InvitationCreatedDataState
impl Unpin for InvitationCreatedDataState
impl UnsafeUnpin for InvitationCreatedDataState
impl UnwindSafe for InvitationCreatedDataState
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