Struct onedrive::OneDriveClient
source · pub struct OneDriveClient {
pub drive_id: Option<String>,
pub site_id: Option<String>,
pub group_id: Option<String>,
pub access_token: String,
pub http_handler: Box<dyn Httper>,
}Expand description
Struct that provides a client that is able to perform OneDrive related operations by using the path of the DriveItem
Fields§
§drive_id: Option<String>(UNUSED) The ID of the drive resource representing the user’s OneDrive
site_id: Option<String>(UNUSED) The ID of the SharePoint site
group_id: Option<String>(UNUSED) The ID of the group that is used to manage resources
access_token: StringThe access token that is required to make HTTP requests to the OneDrive API
http_handler: Box<dyn Httper>The HTTP handler
Trait Implementations§
source§impl OneDriver for OneDriveClient
impl OneDriver for OneDriveClient
source§fn process_error_response_message(&self, msg: &str) -> OneDriveError
fn process_error_response_message(&self, msg: &str) -> OneDriveError
Processes error response message
source§fn get_drive_item(&self, item_path: String) -> Result<DriveItem, OneDriveError>
fn get_drive_item(&self, item_path: String) -> Result<DriveItem, OneDriveError>
Gets the DriveItems from a path based on the provided path to the DriveItem
source§fn get_drive_item_children(
&self,
item_path: String
) -> Result<DriveItemCollection, OneDriveError>
fn get_drive_item_children( &self, item_path: String ) -> Result<DriveItemCollection, OneDriveError>
Gets the children of a DriveItem based on the provided path to the DriveItem
source§fn create_sharing_links(
&self,
item_path: String,
request: CreateLinkRequest
) -> Result<Vec<ShareableLink>, OneDriveError>
fn create_sharing_links( &self, item_path: String, request: CreateLinkRequest ) -> Result<Vec<ShareableLink>, OneDriveError>
Creates the sharing links from DriveItems based on the provided path to the DriveItem
Auto Trait Implementations§
impl !RefUnwindSafe for OneDriveClient
impl !Send for OneDriveClient
impl !Sync for OneDriveClient
impl Unpin for OneDriveClient
impl !UnwindSafe for OneDriveClient
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