pub struct UpdateAccessOptions {
pub boundary: bool,
pub grants: AccessGrants,
pub commit: CommitOptions,
pub expected_inode_id: Option<InodeId>,
pub expected_access_revision_no: Option<AccessRevisionNo>,
}Expand description
Options for replacing an inode’s access row.
Fields§
§boundary: boolWhether the directory stops inheritance from its ancestors.
grants: AccessGrantsThe complete direct grants after the update.
commit: CommitOptionsActor, commit ID, and message.
expected_inode_id: Option<InodeId>The inode that the path must still resolve to before the update.
expected_access_revision_no: Option<AccessRevisionNo>With an inode precondition, the access revision that must still be current.
Implementations§
Source§impl UpdateAccessOptions
impl UpdateAccessOptions
Sourcepub fn new(actor: ActorId, grants: AccessGrants) -> Self
pub fn new(actor: ActorId, grants: AccessGrants) -> Self
An update that replaces the grants and clears the boundary.
Trait Implementations§
Source§impl Clone for UpdateAccessOptions
impl Clone for UpdateAccessOptions
Source§impl Debug for UpdateAccessOptions
impl Debug for UpdateAccessOptions
impl Eq for UpdateAccessOptions
Source§impl PartialEq for UpdateAccessOptions
impl PartialEq for UpdateAccessOptions
impl StructuralPartialEq for UpdateAccessOptions
Auto Trait Implementations§
impl Freeze for UpdateAccessOptions
impl RefUnwindSafe for UpdateAccessOptions
impl Send for UpdateAccessOptions
impl Sync for UpdateAccessOptions
impl Unpin for UpdateAccessOptions
impl UnsafeUnpin for UpdateAccessOptions
impl UnwindSafe for UpdateAccessOptions
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