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

Method from

src/sql/src/session/user.rs:91–96  ·  view source on GitHub ↗
(user: &User)

Source from the content-addressed store, hash-verified

89
90impl From<&User> for mz_pgwire_common::UserMetadata {
91 fn from(user: &User) -> mz_pgwire_common::UserMetadata {
92 mz_pgwire_common::UserMetadata {
93 is_admin: user.is_external_admin(),
94 should_limit_connections: user.limit_max_connections(),
95 }
96 }
97}
98
99impl PartialEq for User {

Callers

nothing calls this directly

Calls 2

is_external_adminMethod · 0.80
limit_max_connectionsMethod · 0.80

Tested by

no test coverage detected