Enum mongodb::db::roles::Role [−][src]
pub enum Role {
All(AllDatabaseRole),
Single {
role: SingleDatabaseRole,
db: String,
},
}Variants
All(AllDatabaseRole)SingleFields of Single
role: SingleDatabaseRole | |
db: String |
Methods
impl Role[src]
impl Rolepub fn to_bson(&self) -> Bson[src]
pub fn to_bson(&self) -> Bsonpub fn to_bson_array(vec: Vec<Role>) -> Bson[src]
pub fn to_bson_array(vec: Vec<Role>) -> BsonDeprecated since 0.2.4
: this method will be removed in the next major release
Trait Implementations
impl Clone for Role[src]
impl Clone for Rolefn clone(&self) -> Role[src]
fn clone(&self) -> RoleReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Role[src]
impl Debug for Rolefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Role[src]
impl PartialEq for Rolefn eq(&self, other: &Role) -> bool[src]
fn eq(&self, other: &Role) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Role) -> bool[src]
fn ne(&self, other: &Role) -> boolThis method tests for !=.
impl Eq for Role[src]
impl Eq for Roleimpl From<Role> for Bson[src]
impl From<Role> for Bson