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§
sourcefn id(&self) -> NetworkPolicyId
fn id(&self) -> NetworkPolicyId
Returns a stable ID for the NetworkPolicy.
sourcefn privileges(&self) -> &PrivilegeMap
fn privileges(&self) -> &PrivilegeMap
Returns the privileges associated with the NetworkPolicy.