pub struct RoleState {
pub login: bool,
pub superuser: bool,
pub createdb: bool,
pub createrole: bool,
pub inherit: bool,
pub replication: bool,
pub bypassrls: bool,
pub connection_limit: i32,
pub comment: Option<String>,
}Expand description
The set of PostgreSQL role attributes we manage.
Fields§
§login: bool§superuser: bool§createdb: bool§createrole: bool§inherit: bool§replication: bool§bypassrls: bool§connection_limit: i32§comment: Option<String>Implementations§
Source§impl RoleState
impl RoleState
Sourcepub fn from_definition(definition: &RoleDefinition) -> Self
pub fn from_definition(definition: &RoleDefinition) -> Self
Build a RoleState from a manifest RoleDefinition, using PostgreSQL
defaults for any unspecified attribute.
Sourcepub fn changed_attributes(&self, other: &RoleState) -> Vec<RoleAttribute>
pub fn changed_attributes(&self, other: &RoleState) -> Vec<RoleAttribute>
Return a list of attribute names that differ between self and other.
Trait Implementations§
impl Eq for RoleState
impl StructuralPartialEq for RoleState
Auto Trait Implementations§
impl Freeze for RoleState
impl RefUnwindSafe for RoleState
impl Send for RoleState
impl Sync for RoleState
impl Unpin for RoleState
impl UnsafeUnpin for RoleState
impl UnwindSafe for RoleState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.