pub struct Access { /* private fields */ }Implementations§
Source§impl Access
impl Access
pub fn new( read: &[String], write: &[String], create: &[String], stats: &[String], release: &[String], interact: &[String], admin: &[String], repositories_dir: PathBuf, ) -> Result<Self>
pub fn new_with_aliases( read: &[String], write: &[String], create: &[String], stats: &[String], release: &[String], interact: &[String], admin: &[String], repositories_dir: PathBuf, aliases: BTreeMap<String, [u8; 16]>, ) -> Result<Self>
pub fn with_propose(self, propose: &[String]) -> Result<Self>
pub fn with_blocked_identities(self, blocked: Vec<[u8; 16]>) -> Self
pub fn allows( &self, op: Operation, repository: &str, identity: Option<&[u8; 16]>, ) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Access
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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