pub enum StoredServer {
Oidc(OidcServer),
Password(PasswordServer),
}
Variants§
Oidc(OidcServer)
Password(PasswordServer)
Trait Implementations§
Source§impl Clone for StoredServer
impl Clone for StoredServer
Source§fn clone(&self) -> StoredServer
fn clone(&self) -> StoredServer
Returns a duplicate of the value. Read more
1.0.0 · 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 StoredServer
impl Debug for StoredServer
Source§impl<'de> Deserialize<'de> for StoredServer
impl<'de> Deserialize<'de> for StoredServer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StoredServer
impl Serialize for StoredServer
Source§impl TryFrom<&StoredServer> for OidcServer
impl TryFrom<&StoredServer> for OidcServer
Source§type Error = StoredConfigError
type Error = StoredConfigError
The type returned in the event of a conversion error.
Source§fn try_from(server: &StoredServer) -> Result<OidcServer, StoredConfigError>
fn try_from(server: &StoredServer) -> Result<OidcServer, StoredConfigError>
Performs the conversion.
Source§impl TryFrom<&StoredServer> for PasswordServer
impl TryFrom<&StoredServer> for PasswordServer
Source§type Error = StoredConfigError
type Error = StoredConfigError
The type returned in the event of a conversion error.
Source§fn try_from(server: &StoredServer) -> Result<PasswordServer, StoredConfigError>
fn try_from(server: &StoredServer) -> Result<PasswordServer, StoredConfigError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StoredServer
impl RefUnwindSafe for StoredServer
impl Send for StoredServer
impl Sync for StoredServer
impl Unpin for StoredServer
impl UnwindSafe for StoredServer
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