Enum mongodb::db::roles::Role
[−]
[src]
pub enum Role { All(AllDatabaseRole), Single { role: SingleDatabaseRole, db: String, }, }
Variants
All(AllDatabaseRole)
Single
Fields of Single
role: SingleDatabaseRole | |
db: String |
Methods
impl Role
[src]
fn to_bson(&self) -> Bson
[src]
fn to_bson_array(vec: Vec<Role>) -> Bson
[src]
Deprecated since 0.2.4
: this method will be removed in the next major release
Trait Implementations
impl Clone for Role
[src]
fn clone(&self) -> Role
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Role
[src]
impl PartialEq for Role
[src]
fn eq(&self, __arg_0: &Role) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Role) -> bool
[src]
This method tests for !=
.