Trait mz_sql::catalog::CatalogNetworkPolicy

source ·
pub trait CatalogNetworkPolicy {
    // Required methods
    fn name(&self) -> &str;
    fn id(&self) -> NetworkPolicyId;
    fn owner_id(&self) -> RoleId;
    fn privileges(&self) -> &PrivilegeMap;
}
Expand description

A network policy in a SessionCatalog.

Required Methods§

source

fn name(&self) -> &str

Returns a fully-specified name of the NetworkPolicy.

source

fn id(&self) -> NetworkPolicyId

Returns a stable ID for the NetworkPolicy.

source

fn owner_id(&self) -> RoleId

Returns the ID of the owning NetworkPolicy.

source

fn privileges(&self) -> &PrivilegeMap

Returns the privileges associated with the NetworkPolicy.

Implementors§