pub struct MongoRole {
pub role: String,
pub db: String,
pub privileges: Vec<MongoPrivilege>,
pub roles: Vec<InheritedRole>,
}Expand description
MongoDB role definition.
Fields§
§role: StringRole name.
db: StringDatabase.
privileges: Vec<MongoPrivilege>Privileges.
roles: Vec<InheritedRole>Inherited roles.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MongoRole
impl<'de> Deserialize<'de> for MongoRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MongoRole
Auto Trait Implementations§
impl Freeze for MongoRole
impl RefUnwindSafe for MongoRole
impl Send for MongoRole
impl Sync for MongoRole
impl Unpin for MongoRole
impl UnwindSafe for MongoRole
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