pub struct AlterDefaultPrivileges {
pub for_roles: Vec<Ident>,
pub in_schemas: Vec<Ident>,
pub action: AlterDefaultPrivilegesAction,
}Expand description
ALTER DEFAULT PRIVILEGES statement.
See https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html.
Fields§
§for_roles: Vec<Ident>Optional FOR { ROLE | USER } target_role [, ...] list.
This field is keyword-agnostic: the parser accepts both FOR ROLE and
FOR USER (PostgreSQL treats them as synonyms), but the Display impl
always emits the canonical FOR ROLE form. Downstream consumers cannot
distinguish which keyword the user wrote.
in_schemas: Vec<Ident>Optional IN SCHEMA schema_name [, ...] list.
action: AlterDefaultPrivilegesActionThe abbreviated GRANT or REVOKE body.
Trait Implementations§
Source§impl Clone for AlterDefaultPrivileges
impl Clone for AlterDefaultPrivileges
Source§fn clone(&self) -> AlterDefaultPrivileges
fn clone(&self) -> AlterDefaultPrivileges
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 AlterDefaultPrivileges
impl Debug for AlterDefaultPrivileges
Source§impl<'de> Deserialize<'de> for AlterDefaultPrivileges
impl<'de> Deserialize<'de> for AlterDefaultPrivileges
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 Display for AlterDefaultPrivileges
impl Display for AlterDefaultPrivileges
Source§impl From<AlterDefaultPrivileges> for Statement
impl From<AlterDefaultPrivileges> for Statement
Source§fn from(v: AlterDefaultPrivileges) -> Self
fn from(v: AlterDefaultPrivileges) -> Self
Converts to this type from the input type.
Source§impl Hash for AlterDefaultPrivileges
impl Hash for AlterDefaultPrivileges
Source§impl Ord for AlterDefaultPrivileges
impl Ord for AlterDefaultPrivileges
Source§fn cmp(&self, other: &AlterDefaultPrivileges) -> Ordering
fn cmp(&self, other: &AlterDefaultPrivileges) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlterDefaultPrivileges
impl PartialEq for AlterDefaultPrivileges
Source§impl PartialOrd for AlterDefaultPrivileges
impl PartialOrd for AlterDefaultPrivileges
Source§impl Serialize for AlterDefaultPrivileges
impl Serialize for AlterDefaultPrivileges
Source§impl Visit for AlterDefaultPrivileges
impl Visit for AlterDefaultPrivileges
Source§impl VisitMut for AlterDefaultPrivileges
impl VisitMut for AlterDefaultPrivileges
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for AlterDefaultPrivileges
impl StructuralPartialEq for AlterDefaultPrivileges
Auto Trait Implementations§
impl Freeze for AlterDefaultPrivileges
impl RefUnwindSafe for AlterDefaultPrivileges
impl Send for AlterDefaultPrivileges
impl Sync for AlterDefaultPrivileges
impl Unpin for AlterDefaultPrivileges
impl UnsafeUnpin for AlterDefaultPrivileges
impl UnwindSafe for AlterDefaultPrivileges
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