Skip to main content

AS

Constant AS 

Source
pub const AS: PolicyMarker;
Expand description

Specifies whether a policy is PERMISSIVE or RESTRICTIVE.

ยงExample

#[PostgresPolicy(AS = "RESTRICTIVE")]
struct TenantPolicy(Users);

See: https://www.postgresql.org/docs/current/sql-createpolicy.html