pub enum UserMappingUser {
Ident(Ident),
User,
CurrentRole,
CurrentUser,
Public,
}Expand description
The role specification in a CREATE USER MAPPING statement.
See https://www.postgresql.org/docs/current/sql-createusermapping.html
Variants§
Ident(Ident)
A specific role name.
User
USER (current user)
CurrentRole
CURRENT_ROLE
CurrentUser
CURRENT_USER
Public
PUBLIC
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 · 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<'de> Deserialize<'de> for UserMappingUser
impl<'de> Deserialize<'de> for UserMappingUser
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 Display for UserMappingUser
impl Display 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 · 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
Source§impl PartialEq for UserMappingUser
impl PartialEq for UserMappingUser
Source§impl PartialOrd for UserMappingUser
impl PartialOrd for UserMappingUser
Source§impl Serialize for UserMappingUser
impl Serialize for UserMappingUser
Source§impl Visit for UserMappingUser
impl Visit for UserMappingUser
Source§impl VisitMut for UserMappingUser
impl VisitMut for UserMappingUser
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq 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