pub enum Role {
Admin,
Regular,
}Expand description
A user’s role.
Variants§
Implementations§
Trait Implementations§
Source§impl Bind for Role
Available on crate feature sqll015 only.Binds as the statement’s only parameter, as BindValue does.
impl Bind for Role
Available on crate feature
sqll015 only.Binds as the statement’s only parameter, as BindValue does.
Source§impl BindValue for Role
Available on crate feature sqll015 only.Binds the role’s name, Role::as_str, as text.
impl BindValue for Role
Available on crate feature
sqll015 only.Binds the role’s name, Role::as_str, as text.
impl Copy for Role
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for Rolewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Binary, __A> for Rolewhere
__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 Rolewhere
__A: Allocator,
Available on crate feature musli02 only.
impl<'__de, __A> Decode<'__de, Text, __A> for Rolewhere
__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 Role
impl<'de> Deserialize<'de> for Role
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 Role
Available on crate feature musli02 only.
impl Encode<Binary> for Role
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 Role
Available on crate feature musli02 only.
impl Encode<Text> for Role
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 Role
Source§impl<'stmt> FromColumn<'stmt> for Role
Available on crate feature sqll015 only.Reads a text column holding the role’s name, failing with
Code::MISMATCH on a name that is not one.
impl<'stmt> FromColumn<'stmt> for Role
Available on crate feature
sqll015 only.Reads a text column holding the role’s name, failing with
Code::MISMATCH on a name that is not one.
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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