pub struct CreateAclBody {
pub entry: AclEntry,
pub reason: Option<String>,
}Expand description
acl/grant/0.1 request.
The entry is nested rather than flattened because canonical acl/*
carries one AclEntry shape across every task — grant, show, list, revoke
— so a consumer comparing entries between them cannot end up looking at two
different spellings of the same thing.
Note what grant deliberately cannot do. Changing an existing subject’s
role belongs to acl/change-role, which takes the current role as a
compare-and-swap; narrowing scopes belongs to acl/revoke. Both are
refused here rather than silently applied, so that a reduction in authority
always passes through the task that is named and audited as one.
Fields§
§entry: AclEntryThe entry the caller wants the maintainer to hold.
reason: Option<String>Optional human-readable rationale, recorded with the grant.
Trait Implementations§
Source§impl Clone for CreateAclBody
impl Clone for CreateAclBody
Source§fn clone(&self) -> CreateAclBody
fn clone(&self) -> CreateAclBody
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 CreateAclBody
impl Debug for CreateAclBody
Source§impl<'de> Deserialize<'de> for CreateAclBody
impl<'de> Deserialize<'de> for CreateAclBody
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
Auto Trait Implementations§
impl Freeze for CreateAclBody
impl RefUnwindSafe for CreateAclBody
impl Send for CreateAclBody
impl Sync for CreateAclBody
impl Unpin for CreateAclBody
impl UnsafeUnpin for CreateAclBody
impl UnwindSafe for CreateAclBody
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