pub struct AuthConfig {
pub password: bool,
pub google: bool,
pub cloudflare: bool,
pub logins: bool,
}Expand description
What the sign-in page offers, from GET /api/auth/config.
Fields§
§password: boolPassword sign-in is offered.
google: boolGoogle sign-in is offered.
cloudflare: boolThis request carries Cloudflare Access credentials that map to a user.
logins: boolThe app uses login names, not only emails.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
impl Copy for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for AuthConfigwhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for AuthConfigwhere
__A: Allocator,
Available on crate feature
musli02 only.Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'__de, __A> Decode<'__de, Text, __A> for AuthConfigwhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for AuthConfigwhere
__A: Allocator,
Available on crate feature
musli02 only.Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'de> Deserialize<'de> for AuthConfig
impl<'de> Deserialize<'de> for AuthConfig
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 Encode<Binary> for AuthConfig
Available on crate feature musli02 only.
impl Encode<Binary> for AuthConfig
Available on crate feature
musli02 only.Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = AuthConfig
type Encode = AuthConfig
The underlying type being encoded. Read more
Source§impl Encode<Text> for AuthConfig
Available on crate feature musli02 only.
impl Encode<Text> for AuthConfig
Available on crate feature
musli02 only.Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = AuthConfig
type Encode = AuthConfig
The underlying type being encoded. Read more
impl Eq for AuthConfig
Source§impl PartialEq for AuthConfig
impl PartialEq for AuthConfig
Source§impl Serialize for AuthConfig
impl Serialize for AuthConfig
impl StructuralPartialEq for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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