pub struct MongoRoleBuilder { /* private fields */ }Expand description
Builder for MongoDB roles.
Implementations§
Source§impl MongoRoleBuilder
impl MongoRoleBuilder
Sourcepub fn privilege_collection<I, S>(
self,
collection: impl Into<String>,
actions: I,
) -> Self
pub fn privilege_collection<I, S>( self, collection: impl Into<String>, actions: I, ) -> Self
Add collection-level privilege.
Sourcepub fn privilege_database<I, S>(self, actions: I) -> Self
pub fn privilege_database<I, S>(self, actions: I) -> Self
Add database-level privilege.
Trait Implementations§
Source§impl Clone for MongoRoleBuilder
impl Clone for MongoRoleBuilder
Source§fn clone(&self) -> MongoRoleBuilder
fn clone(&self) -> MongoRoleBuilder
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 MongoRoleBuilder
impl Debug for MongoRoleBuilder
Source§impl Default for MongoRoleBuilder
impl Default for MongoRoleBuilder
Source§fn default() -> MongoRoleBuilder
fn default() -> MongoRoleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MongoRoleBuilder
impl RefUnwindSafe for MongoRoleBuilder
impl Send for MongoRoleBuilder
impl Sync for MongoRoleBuilder
impl Unpin for MongoRoleBuilder
impl UnwindSafe for MongoRoleBuilder
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