pub enum AuthProvider {
CloudSqlIam {
project: Option<String>,
},
AlloyDbIam {
project: Option<String>,
cluster: Option<String>,
},
RdsIam {
region: Option<String>,
},
AzureAd {
tenant_id: Option<String>,
},
Supabase {
project_ref: Option<String>,
},
PlanetScale {
organization: Option<String>,
},
}Expand description
Cloud authentication provider configuration.
Declares awareness of cloud IAM-mapped roles so pgroles can correctly reference auto-created role names in grants and memberships.
Variants§
CloudSqlIam
Google Cloud SQL IAM authentication.
Service accounts map to PG roles like user@project.iam.
AlloyDbIam
Google AlloyDB IAM authentication. IAM users and groups map to PostgreSQL roles managed by AlloyDB.
Fields
RdsIam
AWS RDS IAM authentication.
IAM users authenticate via token; the PG role must have rds_iam granted.
AzureAd
Azure Entra ID (AAD) authentication for Azure Database for PostgreSQL.
Supabase
Supabase-managed PostgreSQL authentication.
PlanetScale
PlanetScale PostgreSQL authentication metadata.
Trait Implementations§
Source§impl Clone for AuthProvider
impl Clone for AuthProvider
Source§fn clone(&self) -> AuthProvider
fn clone(&self) -> AuthProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthProvider
impl Debug for AuthProvider
Source§impl<'de> Deserialize<'de> for AuthProvider
impl<'de> Deserialize<'de> for AuthProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AuthProvider
impl JsonSchema for AuthProvider
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AuthProvider
impl RefUnwindSafe for AuthProvider
impl Send for AuthProvider
impl Sync for AuthProvider
impl Unpin for AuthProvider
impl UnsafeUnpin for AuthProvider
impl UnwindSafe for AuthProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more