pub struct Grantees { /* private fields */ }Expand description
The roles a deployment grants the manifest’s grantable functions to, which drift accepts as holding them.
Implementations§
Source§impl Grantees
impl Grantees
Sourcepub fn new(manifest: &Manifest, roles: &[String]) -> Result<Self, Error>
pub fn new(manifest: &Manifest, roles: &[String]) -> Result<Self, Error>
Accepts each of roles, a role’s name as Postgres stores it, holding EXECUTE on a function manifest lists as
grantable. Its grant of any other function the SQL revokes, and every default privilege, are still reported.
§Errors
A role is empty; or is PUBLIC, which holds exactly the functions the SQL grants to PUBLIC; or is the role every
policy is written for, since a grantable function answers for any id; or manifest records no lists of who may
run each function.
Trait Implementations§
impl Eq for Grantees
impl StructuralPartialEq for Grantees
Auto Trait Implementations§
impl Forget for Grantees
impl Freeze for Grantees
impl Move for Grantees
impl RefUnwindSafe for Grantees
impl Send for Grantees
impl Sync for Grantees
impl Unpin for Grantees
impl UnsafeUnpin for Grantees
impl UnwindSafe for Grantees
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