pub struct ClusterManagedRoles {Show 15 fields
pub bypassrls: Option<bool>,
pub comment: Option<String>,
pub connection_limit: Option<i64>,
pub createdb: Option<bool>,
pub createrole: Option<bool>,
pub disable_password: Option<bool>,
pub ensure: Option<ClusterManagedRolesEnsure>,
pub in_roles: Option<Vec<String>>,
pub inherit: Option<bool>,
pub login: Option<bool>,
pub name: String,
pub password_secret: Option<ClusterManagedRolesPasswordSecret>,
pub replication: Option<bool>,
pub superuser: Option<bool>,
pub valid_until: Option<String>,
}
Expand description
RoleConfiguration is the representation, in Kubernetes, of a PostgreSQL role with the additional field Ensure specifying whether to ensure the presence or absence of the role in the database The defaults of the CREATE ROLE command are applied Reference: https://www.postgresql.org/docs/current/sql-createrole.html
Fields§
§bypassrls: Option<bool>
Whether a role bypasses every row-level security (RLS) policy. Default is false
.
comment: Option<String>
Description of the role
connection_limit: Option<i64>
If the role can log in, this specifies how many concurrent connections the role can make. -1
(the default) means no limit.
createdb: Option<bool>
When set to true
, the role being defined will be allowed to create new databases. Specifying false
(default) will deny a role the ability to create databases.
createrole: Option<bool>
Whether the role will be permitted to create, alter, drop, comment on, change the security label for, and grant or revoke membership in other roles. Default is false
.
disable_password: Option<bool>
DisablePassword indicates that a role’s password should be set to NULL in Postgres
ensure: Option<ClusterManagedRolesEnsure>
Ensure the role is present
or absent
- defaults to “present”
in_roles: Option<Vec<String>>
List of one or more existing roles to which this role will be immediately added as a new member. Default empty.
inherit: Option<bool>
Whether a role “inherits” the privileges of roles it is a member of. Defaults is true
.
login: Option<bool>
Whether the role is allowed to log in. A role having the login
attribute can be thought of as a user. Roles without this attribute are useful for managing database privileges, but are not users in the usual sense of the word. Default is false
.
name: String
Name of the role
password_secret: Option<ClusterManagedRolesPasswordSecret>
Secret containing the password of the role (if present) If null, the password will be ignored unless DisablePassword is set
replication: Option<bool>
Whether a role is a replication role. A role must have this attribute (or be a superuser) in order to be able to connect to the server in replication mode (physical or logical replication) and in order to be able to create or drop replication slots. A role having the replication
attribute is a very highly privileged role, and should only be used on roles actually used for replication. Default is false
.
superuser: Option<bool>
Whether the role is a superuser
who can override all access restrictions within the database - superuser status is dangerous and should be used only when really needed. You must yourself be a superuser to create a new superuser. Defaults is false
.
valid_until: Option<String>
Date and time after which the role’s password is no longer valid. When omitted, the password will never expire (default).
Trait Implementations§
Source§impl Clone for ClusterManagedRoles
impl Clone for ClusterManagedRoles
Source§fn clone(&self) -> ClusterManagedRoles
fn clone(&self) -> ClusterManagedRoles
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClusterManagedRoles
impl Debug for ClusterManagedRoles
Source§impl Default for ClusterManagedRoles
impl Default for ClusterManagedRoles
Source§fn default() -> ClusterManagedRoles
fn default() -> ClusterManagedRoles
Source§impl<'de> Deserialize<'de> for ClusterManagedRoles
impl<'de> Deserialize<'de> for ClusterManagedRoles
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>,
Source§impl JsonSchema for ClusterManagedRoles
impl JsonSchema for ClusterManagedRoles
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for ClusterManagedRoles
impl RefUnwindSafe for ClusterManagedRoles
impl Send for ClusterManagedRoles
impl Sync for ClusterManagedRoles
impl Unpin for ClusterManagedRoles
impl UnwindSafe for ClusterManagedRoles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more