#[non_exhaustive]pub enum DirectoryState {
Linked,
Validating,
InvalidCredentials,
Unlinked,
Deleting,
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.
Linked
Validating
InvalidCredentials
Unlinked
Deleting
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 DirectoryState
impl DirectoryState
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 DirectoryState
impl AsRef<str> for DirectoryState
Source§impl Clone for DirectoryState
impl Clone for DirectoryState
Source§fn clone(&self) -> DirectoryState
fn clone(&self) -> DirectoryState
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 DirectoryState
impl Debug for DirectoryState
Source§impl<'de> Deserialize<'de> for DirectoryState
impl<'de> Deserialize<'de> for DirectoryState
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 DirectoryState
impl Display for DirectoryState
impl Eq for DirectoryState
Source§impl From<&str> for DirectoryState
impl From<&str> for DirectoryState
Source§impl From<String> for DirectoryState
impl From<String> for DirectoryState
Source§impl FromStr for DirectoryState
impl FromStr for DirectoryState
Source§impl Hash for DirectoryState
impl Hash for DirectoryState
Source§impl PartialEq for DirectoryState
impl PartialEq for DirectoryState
Source§impl Serialize for DirectoryState
impl Serialize for DirectoryState
impl StructuralPartialEq for DirectoryState
Auto Trait Implementations§
impl Freeze for DirectoryState
impl RefUnwindSafe for DirectoryState
impl Send for DirectoryState
impl Sync for DirectoryState
impl Unpin for DirectoryState
impl UnsafeUnpin for DirectoryState
impl UnwindSafe for DirectoryState
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