Trait RoleOptBuilderExt

Source
pub trait RoleOptBuilderExt {
    // Required method
    fn role_opts(&mut self) -> &mut Option<BTreeSet<RoleOpt>>;

    // Provided methods
    fn password(&mut self, p: impl Into<LitStr>) -> &mut Self { ... }
    fn login(&mut self, b: bool) -> &mut Self { ... }
    fn superuser(&mut self, b: bool) -> &mut Self { ... }
    fn role_options(&mut self, m: impl Into<MapLiteral>) -> &mut Self { ... }
    fn access_to_datacenters(&mut self, s: impl Into<SetLiteral>) -> &mut Self { ... }
    fn access_to_all_datacenters(&mut self) -> &mut Self { ... }
}

Required Methods§

Source

fn role_opts(&mut self) -> &mut Option<BTreeSet<RoleOpt>>

Provided Methods§

Source

fn password(&mut self, p: impl Into<LitStr>) -> &mut Self

Source

fn login(&mut self, b: bool) -> &mut Self

Source

fn superuser(&mut self, b: bool) -> &mut Self

Source

fn role_options(&mut self, m: impl Into<MapLiteral>) -> &mut Self

Source

fn access_to_datacenters(&mut self, s: impl Into<SetLiteral>) -> &mut Self

Source

fn access_to_all_datacenters(&mut self) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§