Struct cql3_parser::role_common::RoleCommon
source · [−]pub struct RoleCommon {
pub name: Identifier,
pub password: Option<String>,
pub superuser: Option<bool>,
pub login: Option<bool>,
pub options: Vec<(String, String)>,
pub if_not_exists: bool,
}Expand description
the data for the create role statement.
Fields
name: Identifierthe name of the role
password: Option<String>if specified the password for the role
superuser: Option<bool>if specified then the user is explicitly noted as SUPERUER or NOSUPERUSER
login: Option<bool>if specified the user LOGIN option is specified
options: Vec<(String, String)>the list of options for an external authenticator.
if_not_exists: boolonly create the role if it does not exist.
Trait Implementations
sourceimpl Clone for RoleCommon
impl Clone for RoleCommon
sourcefn clone(&self) -> RoleCommon
fn clone(&self) -> RoleCommon
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RoleCommon
impl Debug for RoleCommon
sourceimpl Display for RoleCommon
impl Display for RoleCommon
sourceimpl PartialEq<RoleCommon> for RoleCommon
impl PartialEq<RoleCommon> for RoleCommon
sourcefn eq(&self, other: &RoleCommon) -> bool
fn eq(&self, other: &RoleCommon) -> bool
impl StructuralPartialEq for RoleCommon
Auto Trait Implementations
impl RefUnwindSafe for RoleCommon
impl Send for RoleCommon
impl Sync for RoleCommon
impl Unpin for RoleCommon
impl UnwindSafe for RoleCommon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more