Enum mongodb::db::roles::Role [] [src]

pub enum Role {
    All(AllDatabaseRole),
    Single {
        role: SingleDatabaseRole,
        db: String,
    },
}

Variants

All(AllDatabaseRole)Single

Fields

role: SingleDatabaseRole
db: String

Methods

impl Role
[src]

fn to_bson_array(vec: Vec<Role>) -> Bson