pub struct OnedriveConfig {
pub refresh_token: String,
pub client_id: String,
pub client_secret: String,
}
Fields§
§refresh_token: String
The refresh token for the onedrive account. For further information, please refer to the official documentation of Microsoft OAuth 2.0 authorization flow.
client_id: String
The client id for the application. You can get it from the Azure portal with the client secret.
client_secret: String
The client secret for the application. You can get it from the Azure portal with the client id.
Trait Implementations§
Source§impl Clone for OnedriveConfig
impl Clone for OnedriveConfig
Source§fn clone(&self) -> OnedriveConfig
fn clone(&self) -> OnedriveConfig
Returns a copy 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 CloudDriver<OnedriveConfig, OnedriveState> for OnedriveDriver
impl CloudDriver<OnedriveConfig, OnedriveState> for OnedriveDriver
Source§fn new<'async_trait>(
state: OnedriveState,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
fn new<'async_trait>(
state: OnedriveState,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
Create a new instance of the driver.
Source§fn load_config<'async_trait>(
config: OnedriveConfig,
) -> Pin<Box<dyn Future<Output = OnedriveState> + Send + 'async_trait>>
fn load_config<'async_trait>( config: OnedriveConfig, ) -> Pin<Box<dyn Future<Output = OnedriveState> + Send + 'async_trait>>
If
Config
is State
, returns Config
directly.fn reload_vfs<'life0, 'async_trait>(
state: &'life0 OnedriveState,
) -> Pin<Box<dyn Future<Output = Result<CombinableDir<StaticCombinableFile>, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Source§impl Debug for OnedriveConfig
impl Debug for OnedriveConfig
Source§impl<'de> Deserialize<'de> for OnedriveConfig
impl<'de> Deserialize<'de> for OnedriveConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OnedriveConfig
impl RefUnwindSafe for OnedriveConfig
impl Send for OnedriveConfig
impl Sync for OnedriveConfig
impl Unpin for OnedriveConfig
impl UnwindSafe for OnedriveConfig
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