pub struct AclChangeRevoke {
pub type: Type,
pub role: String,
pub privileges: Vec<String>,
pub scope: AclGrantScope,
pub objects: Option<Vec<AclObject>>,
}Fields§
§type: Type§role: Stringa data table role of the instance, other than admin
privileges: Vec<String>§scope: AclGrantScope§objects: Option<Vec<AclObject>>objects inside the target the revoke covers, empty for the target itself. Only with the target scope; a revoke on all objects of a kind is refused, since it cannot say which grants it takes back.
Implementations§
Source§impl AclChangeRevoke
impl AclChangeRevoke
pub fn new( type: Type, role: String, privileges: Vec<String>, scope: AclGrantScope, ) -> AclChangeRevoke
Trait Implementations§
Source§impl Clone for AclChangeRevoke
impl Clone for AclChangeRevoke
Source§impl Debug for AclChangeRevoke
impl Debug for AclChangeRevoke
Source§impl Default for AclChangeRevoke
impl Default for AclChangeRevoke
Source§impl<'de> Deserialize<'de> for AclChangeRevoke
impl<'de> Deserialize<'de> for AclChangeRevoke
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 PartialEq for AclChangeRevoke
impl PartialEq for AclChangeRevoke
Source§impl Serialize for AclChangeRevoke
impl Serialize for AclChangeRevoke
impl StructuralPartialEq for AclChangeRevoke
Auto Trait Implementations§
impl Freeze for AclChangeRevoke
impl RefUnwindSafe for AclChangeRevoke
impl Send for AclChangeRevoke
impl Sync for AclChangeRevoke
impl Unpin for AclChangeRevoke
impl UnsafeUnpin for AclChangeRevoke
impl UnwindSafe for AclChangeRevoke
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