(&self)
| 27 | |
| 28 | impl Authenticator { |
| 29 | pub fn kind(&self) -> AuthenticatorKind { |
| 30 | match self { |
| 31 | Authenticator::Frontegg(_) => AuthenticatorKind::Frontegg, |
| 32 | Authenticator::Password(_) => AuthenticatorKind::Password, |
| 33 | Authenticator::Sasl(_) => AuthenticatorKind::Sasl, |
| 34 | Authenticator::Oidc(_) => AuthenticatorKind::Oidc, |
| 35 | Authenticator::None => AuthenticatorKind::None, |
| 36 | } |
| 37 | } |
| 38 | } |