pub struct FileAcls {
pub readers: Vec<String>,
}
Expand description
Describes the ACLs of a file.
Fields§
§readers: Vec<String>
List of principals that are allowed to read the file.
Implementations§
Source§impl FileAcls
impl FileAcls
Sourcepub fn with_readers<T: Into<Vec<String>>>(self, readers: T) -> Self
pub fn with_readers<T: Into<Vec<String>>>(self, readers: T) -> Self
Extends this set of ACLs with the given readers
.
Sourcepub fn readers(&self) -> &[String]
pub fn readers(&self) -> &[String]
Gets the list of principals that are allowed to read the file.
Sourcepub fn add_reader<R: Into<String>>(&mut self, reader: R)
pub fn add_reader<R: Into<String>>(&mut self, reader: R)
Modifies the readers list by appending reader
to it.
Trait Implementations§
impl Eq for FileAcls
impl StructuralPartialEq for FileAcls
Auto Trait Implementations§
impl Freeze for FileAcls
impl RefUnwindSafe for FileAcls
impl Send for FileAcls
impl Sync for FileAcls
impl Unpin for FileAcls
impl UnwindSafe for FileAcls
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