pub struct CreateRoleStatementBuilder { /* private fields */ }Expand description
Builder for CreateRoleStatement.
Implementations
sourceimpl CreateRoleStatementBuilder
impl CreateRoleStatementBuilder
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn name<VALUE: Into<Name>>(&mut self, value: VALUE) -> &mut Self
pub fn options(&mut self, value: BTreeSet<RoleOpt>) -> &mut Self
sourcepub fn build(
&self
) -> Result<CreateRoleStatement, CreateRoleStatementBuilderError>
pub fn build(
&self
) -> Result<CreateRoleStatement, CreateRoleStatementBuilderError>
sourceimpl CreateRoleStatementBuilder
impl CreateRoleStatementBuilder
sourcepub fn if_not_exists(&mut self) -> &mut Self
pub fn if_not_exists(&mut self) -> &mut Self
Set IF NOT EXISTS on the statement.
To undo this, use set_if_not_exists(false).
Trait Implementations
sourceimpl Clone for CreateRoleStatementBuilder
impl Clone for CreateRoleStatementBuilder
sourcefn clone(&self) -> CreateRoleStatementBuilder
fn clone(&self) -> CreateRoleStatementBuilder
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 more
sourceimpl Default for CreateRoleStatementBuilder
impl Default for CreateRoleStatementBuilder
sourceimpl RoleOptBuilderExt for CreateRoleStatementBuilder
impl RoleOptBuilderExt for CreateRoleStatementBuilder
fn role_opts(&mut self) -> &mut Option<BTreeSet<RoleOpt>>
fn password(&mut self, p: impl Into<LitStr>) -> &mut Self
fn login(&mut self, b: bool) -> &mut Self
fn superuser(&mut self, b: bool) -> &mut Self
fn role_options(&mut self, m: impl Into<MapLiteral>) -> &mut Self
fn access_to_datacenters(&mut self, s: impl Into<SetLiteral>) -> &mut Self
fn access_to_all_datacenters(&mut self) -> &mut Self
Auto Trait Implementations
impl RefUnwindSafe for CreateRoleStatementBuilder
impl Send for CreateRoleStatementBuilder
impl Sync for CreateRoleStatementBuilder
impl Unpin for CreateRoleStatementBuilder
impl UnwindSafe for CreateRoleStatementBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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