[][src]Struct onedrive_api::Permission

pub struct Permission { /* fields omitted */ }

A list of the Microsoft Graph permissions that you want the user to consent to.

See also

Microsoft Docs

Methods

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

Microsoft Docs

Trait Implementations

impl Default for Permission[src]

impl Clone for Permission[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Permission[src]

Auto Trait Implementations

impl Send for Permission

impl Sync for Permission

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T