pub struct SchemaState {
pub owner: Option<String>,
pub owner_privileges: BTreeSet<Privilege>,
}Expand description
The schema state managed by pgroles.
Fields§
§owner: Option<String>Desired owner for the schema. None means ensure existence only.
owner_privileges: BTreeSet<Privilege>The schema owner’s ordinary privileges on the schema itself.
PostgreSQL lets owners revoke their own CREATE/USAGE privileges, so we track the effective state separately from grant rows.
Trait Implementations§
Source§impl Clone for SchemaState
impl Clone for SchemaState
Source§fn clone(&self) -> SchemaState
fn clone(&self) -> SchemaState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaState
impl Debug for SchemaState
Source§impl PartialEq for SchemaState
impl PartialEq for SchemaState
Source§fn eq(&self, other: &SchemaState) -> bool
fn eq(&self, other: &SchemaState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaState
impl Serialize for SchemaState
impl Eq for SchemaState
impl StructuralPartialEq for SchemaState
Auto Trait Implementations§
impl Freeze for SchemaState
impl RefUnwindSafe for SchemaState
impl Send for SchemaState
impl Sync for SchemaState
impl Unpin for SchemaState
impl UnsafeUnpin for SchemaState
impl UnwindSafe for SchemaState
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.