pub struct AclGrant {
pub grantee: String,
pub privileges: Vec<String>,
pub object: Option<Box<AclObject>>,
pub future: Option<String>,
pub sources: Vec<AclSource>,
}Fields§
§grantee: String§privileges: Vec<String>§object: Option<Box<AclObject>>§future: Option<String>set for a default privilege, naming the kind of object it covers (TABLES, SEQUENCES, FUNCTIONS, TYPES, or SCHEMAS). On a schema, the defaults set in that schema; on the database, the ones set database-wide, which apply in every schema and which no schema’s own defaults take back.
sources: Vec<AclSource>the roles the grant comes from, each once — who granted it, or for a default privilege the role whose future objects it covers. A revoke of some of the grant’s privileges takes them back from every source that gave them.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclGrant
impl<'de> Deserialize<'de> for AclGrant
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
impl StructuralPartialEq for AclGrant
Auto Trait Implementations§
impl Freeze for AclGrant
impl RefUnwindSafe for AclGrant
impl Send for AclGrant
impl Sync for AclGrant
impl Unpin for AclGrant
impl UnsafeUnpin for AclGrant
impl UnwindSafe for AclGrant
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