[][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

Implementations

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(mut self: Self, write: bool) -> Self[src]

Set the write permission.

pub fn access_shared(mut self: Self, access_shared: bool) -> Self[src]

Set the permission to the shared files.

pub fn offline_access(mut self: 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 Clone for Permission[src]

impl Debug for Permission[src]

impl Default for Permission[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.