pub struct PermissionGrant {
pub origin: Option<String>,
pub permissions: Vec<PermissionType>,
}Expand description
A batch of permissions that should be granted when a context is created.
Fields§
§origin: Option<String>§permissions: Vec<PermissionType>Implementations§
Source§impl PermissionGrant
impl PermissionGrant
pub fn new<I>(permissions: I) -> Selfwhere
I: IntoIterator<Item = PermissionType>,
pub fn with_origin<T: Into<String>>(self, origin: T) -> Self
Trait Implementations§
Source§impl Clone for PermissionGrant
impl Clone for PermissionGrant
Source§fn clone(&self) -> PermissionGrant
fn clone(&self) -> PermissionGrant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionGrant
impl Debug for PermissionGrant
Source§impl Default for PermissionGrant
impl Default for PermissionGrant
Source§fn default() -> PermissionGrant
fn default() -> PermissionGrant
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PermissionGrant
impl RefUnwindSafe for PermissionGrant
impl Send for PermissionGrant
impl Sync for PermissionGrant
impl Unpin for PermissionGrant
impl UnwindSafe for PermissionGrant
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