Struct endbasic_std::storage::FileAcls
source · 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§
source§impl PartialEq for FileAcls
impl PartialEq for FileAcls
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)