pub struct CreateRoleStatementBuilder { /* private fields */ }
Expand description
Builder for CreateRoleStatement
.
Implementations§
Source§impl 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>
Source§impl 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§
Source§impl Clone for CreateRoleStatementBuilder
impl Clone for CreateRoleStatementBuilder
Source§fn clone(&self) -> CreateRoleStatementBuilder
fn clone(&self) -> CreateRoleStatementBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CreateRoleStatementBuilder
impl Default for CreateRoleStatementBuilder
Source§impl 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 Freeze for CreateRoleStatementBuilder
impl RefUnwindSafe for CreateRoleStatementBuilder
impl Send for CreateRoleStatementBuilder
impl Sync for CreateRoleStatementBuilder
impl Unpin for CreateRoleStatementBuilder
impl UnwindSafe for CreateRoleStatementBuilder
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