pub struct Permission { /* private fields */ }Expand description
A list of the Microsoft Graph permissions that you want the user to consent to.
§See also
Implementations§
Source§impl Permission
impl Permission
Sourcepub fn new_read() -> Self
pub fn new_read() -> Self
Create a read-only permission.
Note that the permission is at least to allow reading.
Set the permission to the shared files.
Sourcepub fn offline_access(self, offline_access: bool) -> Self
pub fn offline_access(self, offline_access: bool) -> Self
Set whether allows offline access.
This permission is required to get a TokenResponse::refresh_token for long time access.
§See also
Trait Implementations§
Source§impl Clone for Permission
impl Clone for Permission
Source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
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 Permission
impl Debug for Permission
Source§impl Default for Permission
impl Default for Permission
Source§fn default() -> Permission
fn default() -> Permission
Returns the “default value” for a type. Read more
impl Copy for Permission
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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