Trait mz_sql::catalog::CatalogRole
source · pub trait CatalogRole {
// Required methods
fn name(&self) -> &str;
fn id(&self) -> RoleId;
fn membership(&self) -> &BTreeMap<RoleId, RoleId>;
fn attributes(&self) -> &RoleAttributes;
fn vars(&self) -> &BTreeMap<String, OwnedVarInput>;
}
Expand description
A role in a SessionCatalog
.
Required Methods§
sourcefn membership(&self) -> &BTreeMap<RoleId, RoleId>
fn membership(&self) -> &BTreeMap<RoleId, RoleId>
Returns all role IDs that this role is an immediate a member of, and the grantor of that membership.
Key is the role that some role is a member of, value is the grantor role ID.
sourcefn attributes(&self) -> &RoleAttributes
fn attributes(&self) -> &RoleAttributes
Returns the attributes associated with this role.
sourcefn vars(&self) -> &BTreeMap<String, OwnedVarInput>
fn vars(&self) -> &BTreeMap<String, OwnedVarInput>
Returns all variables that this role has a default value stored for.