Struct onedrive_api::client::Client [−][src]
pub struct Client { /* fields omitted */ }Methods
impl Client[src]
impl Clientpub fn new(token: String, refresh_token: Option<String>) -> Self[src]
pub fn new(token: String, refresh_token: Option<String>) -> Selfpub fn get_token(&self) -> &str[src]
pub fn get_token(&self) -> &strpub fn get_refresh_token(&self) -> Option<&str>[src]
pub fn get_refresh_token(&self) -> Option<&str>pub fn get_drive<'a>(
&self,
drive: impl Into<DriveLocation<'a>>
) -> Result<Drive>[src]
pub fn get_drive<'a>(
&self,
drive: impl Into<DriveLocation<'a>>
) -> Result<Drive>pub fn list_children<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
match_tag: Option<Tag>
) -> Result<Option<Vec<DriveItem>>>[src]
pub fn list_children<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
match_tag: Option<Tag>
) -> Result<Option<Vec<DriveItem>>>See also: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_list_children?view=odsp-graph-online
pub fn get_item<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
match_tag: Option<Tag>
) -> Result<Option<DriveItem>>[src]
pub fn get_item<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
match_tag: Option<Tag>
) -> Result<Option<DriveItem>>See also: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get?view=odsp-graph-online
pub fn upload_small<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
data: &[u8]
) -> Result<DriveItem>[src]
pub fn upload_small<'a>(
&self,
drive: impl Into<DriveLocation<'a>>,
item: impl Into<ItemLocation<'a>>,
data: &[u8]
) -> Result<DriveItem>See also: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content?view=odsp-graph-online