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§
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.