[−][src]Struct onedrive_api::Permission
A list of the Microsoft Graph permissions that you want the user to consent to.
See also
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
Trait Implementations
impl Clone for Permission
[src]
fn clone(&self) -> Permission
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Permission
[src]
impl Default for Permission
[src]
fn default() -> Permission
[src]
Auto Trait Implementations
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,