pub enum UserMappingUser {
Name(Ident),
User,
CurrentRole,
CurrentUser,
SessionUser,
Public,
}Expand description
The user of a CREATE USER MAPPING statement.
Variants§
Name(Ident)
A role name.
User
USER, the current user.
CurrentRole
CURRENT_ROLE
CurrentUser
CURRENT_USER
SessionUser
SESSION_USER
Public
PUBLIC, every role without a mapping of its own.
Trait Implementations§
Source§impl Clone for UserMappingUser
impl Clone for UserMappingUser
Source§fn clone(&self) -> UserMappingUser
fn clone(&self) -> UserMappingUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserMappingUser
impl Debug for UserMappingUser
Source§impl Display for UserMappingUser
impl Display for UserMappingUser
impl Eq for UserMappingUser
Source§impl Hash for UserMappingUser
impl Hash for UserMappingUser
Source§impl Ord for UserMappingUser
impl Ord for UserMappingUser
Source§fn cmp(&self, other: &UserMappingUser) -> Ordering
fn cmp(&self, other: &UserMappingUser) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UserMappingUser
impl PartialEq for UserMappingUser
Source§impl PartialOrd for UserMappingUser
impl PartialOrd for UserMappingUser
impl StructuralPartialEq for UserMappingUser
Auto Trait Implementations§
impl Freeze for UserMappingUser
impl RefUnwindSafe for UserMappingUser
impl Send for UserMappingUser
impl Sync for UserMappingUser
impl Unpin for UserMappingUser
impl UnsafeUnpin for UserMappingUser
impl UnwindSafe for UserMappingUser
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