Module exposing: apply, writeRole, writeRestriction
// Source: https://github.com/ReactiveMongo/ReactiveMongo | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package reactivemongo.api.commands
import reactivemongo.core.protocol.MongoWireVersion
import reactivemongo.api.{
AuthenticationMode,
PackSupport,
SerializationPack,
WriteConcern
}
/**
* [[https://docs.mongodb.com/manual/reference/command/createUser/#roles User role]]
*
* @param name the role name (e.g. `readWrite`)
*/
sealed class UserRole private[api] (val name: String) {
override def equals(that: Any): Boolean = that match {
case other: UserRole => this.name == other.name
case _ => false
}
override def hashCode: Int = name.hashCo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key