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: Identifier
the 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: bool
only create the role if it does not exist.
Trait Implementations§
Source§impl Clone for RoleCommon
impl Clone for RoleCommon
Source§fn clone(&self) -> RoleCommon
fn clone(&self) -> RoleCommon
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 RoleCommon
impl Debug for RoleCommon
Source§impl Display for RoleCommon
impl Display for RoleCommon
Source§impl PartialEq for RoleCommon
impl PartialEq for RoleCommon
impl StructuralPartialEq for RoleCommon
Auto Trait Implementations§
impl Freeze for RoleCommon
impl RefUnwindSafe for RoleCommon
impl Send for RoleCommon
impl Sync for RoleCommon
impl Unpin for RoleCommon
impl UnwindSafe for RoleCommon
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more