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