MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / kind

Method kind

src/sql/src/session/user.rs:144–150  ·  view source on GitHub ↗

Returns the kind of user this is.

(&self)

Source from the content-addressed store, hash-verified

142
143 /// Returns the kind of user this is.
144 pub fn kind(&self) -> UserKind {
145 if self.is_external_admin() || self.is_system_user() || self.is_internal_admin() {
146 UserKind::Superuser
147 } else {
148 UserKind::Regular
149 }
150 }
151}
152
153#[derive(Debug, Copy, Clone)]

Callers 3

hintMethod · 0.45
from_sqlMethod · 0.45
acceptsMethod · 0.45

Calls 3

is_external_adminMethod · 0.80
is_system_userMethod · 0.80
is_internal_adminMethod · 0.80

Tested by

no test coverage detected