pub struct ApprovalQueue { /* private fields */ }Implementations§
Source§impl ApprovalQueue
impl ApprovalQueue
pub fn request( &mut self, module: String, target: String, reason: String, options: HashMap<String, String>, ) -> u64
pub fn list(&self) -> Vec<ApprovalRequest>
pub fn get(&self, id: u64) -> Option<&ApprovalRequest>
pub fn approve(&mut self, id: u64) -> bool
pub fn deny(&mut self, id: u64) -> bool
Trait Implementations§
Source§impl Debug for ApprovalQueue
impl Debug for ApprovalQueue
Auto Trait Implementations§
impl Freeze for ApprovalQueue
impl RefUnwindSafe for ApprovalQueue
impl Send for ApprovalQueue
impl Sync for ApprovalQueue
impl Unpin for ApprovalQueue
impl UnsafeUnpin for ApprovalQueue
impl UnwindSafe for ApprovalQueue
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