Struct onedrive_api::Permission [−][src]
pub struct Permission { /* fields omitted */ }A list of the Microsoft Graph permissions that you want the user to consent to.
See also
Implementations
impl Permission[src]
impl Permission[src]pub fn new_read() -> Self[src]
Create a read-only permission.
Note that the permission is at least to allow reading.
pub fn write(self, write: bool) -> Self[src]
Set the write permission.
pub fn access_shared(self, access_shared: bool) -> Self[src]
Set the permission to the shared files.
pub fn offline_access(self, offline_access: bool) -> Self[src]
Set whether allows offline access.
This permission is required to get a refresh_token for long time access.
See also
Trait Implementations
impl Clone for Permission[src]
impl Clone for Permission[src]fn clone(&self) -> Permission[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for Permission[src]
impl Default for Permission[src]fn default() -> Permission[src]
Auto Trait Implementations
impl RefUnwindSafe for Permission
impl RefUnwindSafe for Permissionimpl Send for Permission
impl Send for Permissionimpl Sync for Permission
impl Sync for Permissionimpl Unpin for Permission
impl Unpin for Permissionimpl UnwindSafe for Permission
impl UnwindSafe for PermissionBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]