Struct endbasic_std::storage::FileAcls
source · [−]Expand description
Describes the ACLs of a file.
Fields
readers: Vec<String>
List of principals that are allowed to read the file.
Implementations
sourceimpl 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 StructuralPartialEq for FileAcls
Auto Trait Implementations
impl RefUnwindSafe for FileAcls
impl Send for FileAcls
impl Sync for FileAcls
impl Unpin for FileAcls
impl UnwindSafe for FileAcls
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more