pub struct AuthSpec {
pub identity_field: String,
pub password_field: String,
pub oauth_providers: Vec<String>,
}Expand description
Auth configuration carried in a [auth] section on the user resource.
Fields§
§identity_field: StringField used as the login identifier.
password_field: StringField holding the password hash.
oauth_providers: Vec<String>Enabled OAuth providers, e.g. ["google", "facebook"].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthSpec
impl<'de> Deserialize<'de> for AuthSpec
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
Auto Trait Implementations§
impl Freeze for AuthSpec
impl RefUnwindSafe for AuthSpec
impl Send for AuthSpec
impl Sync for AuthSpec
impl Unpin for AuthSpec
impl UnsafeUnpin for AuthSpec
impl UnwindSafe for AuthSpec
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