pub struct CreateUserStatementBuilder { /* private fields */ }Expand description
Builder for CreateUserStatement.
Implementations
sourceimpl CreateUserStatementBuilder
impl CreateUserStatementBuilder
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 with_password<VALUE: Into<LitStr>>(&mut self, value: VALUE) -> &mut Self
pub fn superuser(&mut self, value: bool) -> &mut Self
sourcepub fn build(
&self
) -> Result<CreateUserStatement, CreateUserStatementBuilderError>
pub fn build(
&self
) -> Result<CreateUserStatement, CreateUserStatementBuilderError>
sourceimpl CreateUserStatementBuilder
impl CreateUserStatementBuilder
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 CreateUserStatementBuilder
impl Clone for CreateUserStatementBuilder
sourcefn clone(&self) -> CreateUserStatementBuilder
fn clone(&self) -> CreateUserStatementBuilder
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
Auto Trait Implementations
impl RefUnwindSafe for CreateUserStatementBuilder
impl Send for CreateUserStatementBuilder
impl Sync for CreateUserStatementBuilder
impl Unpin for CreateUserStatementBuilder
impl UnwindSafe for CreateUserStatementBuilder
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