pub struct RoleBuilder { /* private fields */ }Expand description
Builder for roles.
Implementations§
Source§impl RoleBuilder
impl RoleBuilder
Sourcepub fn createrole(self) -> Self
pub fn createrole(self) -> Self
Allow creating roles.
Sourcepub fn connection_limit(self, limit: i32) -> Self
pub fn connection_limit(self, limit: i32) -> Self
Set connection limit.
Sourcepub fn valid_until(self, timestamp: impl Into<String>) -> Self
pub fn valid_until(self, timestamp: impl Into<String>) -> Self
Set expiration.
Trait Implementations§
Source§impl Clone for RoleBuilder
impl Clone for RoleBuilder
Source§fn clone(&self) -> RoleBuilder
fn clone(&self) -> RoleBuilder
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 moreAuto Trait Implementations§
impl Freeze for RoleBuilder
impl RefUnwindSafe for RoleBuilder
impl Send for RoleBuilder
impl Sync for RoleBuilder
impl Unpin for RoleBuilder
impl UnwindSafe for RoleBuilder
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