pub enum Access {
Pending,
Active,
Revoked,
}Expand description
A user’s account state.
Variants§
Pending
Created but not yet registered. Signs in only through Cloudflare Access, which activates the user.
Active
May sign in.
Revoked
May not sign in by any path until issued a new link.
Implementations§
Trait Implementations§
Source§impl Bind for Access
Available on crate feature sqll015 only.Binds as the statement’s only parameter, as BindValue does.
impl Bind for Access
Available on crate feature
sqll015 only.Binds as the statement’s only parameter, as BindValue does.
Source§impl BindValue for Access
Available on crate feature sqll015 only.Binds the access state’s name, Access::as_str, as text.
impl BindValue for Access
Available on crate feature
sqll015 only.Binds the access state’s name, Access::as_str, as text.
impl Copy for Access
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for Accesswhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for Accesswhere
__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 Accesswhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for Accesswhere
__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 Access
impl<'de> Deserialize<'de> for Access
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 Access
Available on crate feature musli02 only.
impl Encode<Binary> for Access
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§impl Encode<Text> for Access
Available on crate feature musli02 only.
impl Encode<Text> for Access
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
impl Eq for Access
Source§impl<'stmt> FromColumn<'stmt> for Access
Available on crate feature sqll015 only.Reads a text column holding the access state’s name, failing with
Code::MISMATCH on a name that is not one.
impl<'stmt> FromColumn<'stmt> for Access
Available on crate feature
sqll015 only.Reads a text column holding the access state’s name, failing with
Code::MISMATCH on a name that is not one.
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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