Enum sqlparser::ast::RoleOption
source · pub enum RoleOption {
BypassRLS(bool),
ConnectionLimit(Expr),
CreateDB(bool),
CreateRole(bool),
Inherit(bool),
Login(bool),
Password(Password),
Replication(bool),
SuperUser(bool),
ValidUntil(Expr),
}
Expand description
An option in ROLE
statement.
Variants§
BypassRLS(bool)
ConnectionLimit(Expr)
CreateDB(bool)
CreateRole(bool)
Inherit(bool)
Login(bool)
Password(Password)
Replication(bool)
SuperUser(bool)
ValidUntil(Expr)
Trait Implementations§
source§impl Clone for RoleOption
impl Clone for RoleOption
source§fn clone(&self) -> RoleOption
fn clone(&self) -> RoleOption
Returns a copy 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 RoleOption
impl Debug for RoleOption
source§impl<'de> Deserialize<'de> for RoleOption
impl<'de> Deserialize<'de> for RoleOption
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 RoleOption
impl Display for RoleOption
source§impl Hash for RoleOption
impl Hash for RoleOption
source§impl Ord for RoleOption
impl Ord for RoleOption
source§fn cmp(&self, other: &RoleOption) -> Ordering
fn cmp(&self, other: &RoleOption) -> 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<RoleOption> for RoleOption
impl PartialEq<RoleOption> for RoleOption
source§fn eq(&self, other: &RoleOption) -> bool
fn eq(&self, other: &RoleOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RoleOption> for RoleOption
impl PartialOrd<RoleOption> for RoleOption
source§fn partial_cmp(&self, other: &RoleOption) -> Option<Ordering>
fn partial_cmp(&self, other: &RoleOption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RoleOption
impl Serialize for RoleOption
source§impl Visit for RoleOption
impl Visit for RoleOption
source§impl VisitMut for RoleOption
impl VisitMut for RoleOption
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for RoleOption
impl StructuralEq for RoleOption
impl StructuralPartialEq for RoleOption
Auto Trait Implementations§
impl RefUnwindSafe for RoleOption
impl Send for RoleOption
impl Sync for RoleOption
impl Unpin for RoleOption
impl UnwindSafe for RoleOption
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