Crate onedrive

Source
Expand description

Code contained in the library is based on the oauth2-rs example for Microsoft Graph. Link to example: https://github.com/ramosbugs/oauth2-rs/blob/main/examples/msgraph.rs

Structs§

Audio
Struct that groups audio related properties on an item.
BaseItem
An abstract resource that contains a common set of properties shared among several other resource types.
CreateLinkRequest
The request defines properties of the sharing link your application is requesting
Deleted
Struct that indicates that the item has been deleted.
DriveItem
Represents a file, folder, or other item stored in a drive, in OneDrive.
DriveItemCollection
Represents a collection of DriveItems.
ErrorResponse
Represents an error response
File
Struct that groups file-related data items.
FileSystemInfo
Struct that contains properties that are reported by the device’s local file system for the local version of the item.
Folder
Struct that groups folder-related data on an item.
FolderView
Struct that provides or sets recommendations on the user-experience of a folder.
GeoCoordinates
Struct that provides geographic coordinates and elevation of a location based on metadata contained within the file.
GraphTokenObtainer
Struct that implements TokenObtainer to get a token from Microsoft Graph
Hashes
Struct that groups available hashes into a single structure for an item.
HttpClient
Struct that implements Httper
HttpError
HTTP Error Struct
HttpResponse
Simple HTTP Response Struct
Identity
Represents an identity of an actor. For example, an actor can be a user, device or application.
IdentitySet
A keyed collection of Identity resources. It is used to represent a set of identities associated with various events for an item, such as created by or last modified by.
Image
Struct that groups image-related properties.
ItemReference
Provides information necessary to address a DriveItem via the API.
Link
Represents a collection of DriveItems.
Malware
Struct that indicates the presence of malware. The presence (non-null) of the resource indicates that item contains malware. A null (or missing) value indicates that the item is clean.
OneDriveApiErrorResponse
Represents an error response returned by the OneDrive API
OneDriveClient
Struct that provides a client that is able to perform OneDrive related operations by using the path of the DriveItem
OneDriveError
OneDrive Error Struct
Package
Indicates that a DriveItem is the top level item in a “package” or a collection of items that should be treated as a collection instead of individual items.
Photo
Struct that provides photo and camera properties, for example, EXIF metadata, on a DriveItem.
PublicationFacet
Struct that provides details on the published status of a DriveItem version or DriveItem resource.
RemoteItem
Struct that indicates that a DriveItem references an item that exists in another drive. This resource provides the unique IDs of the source drive and target item.
Root
Struct that indicates that an object is the top-most one in its hierarchy. The presence (non-null) of the facet value indicates that the object is the root. A null (or missing) value indicates the object is not the root.
SearchResult
Struct that indicates than an item is the response to a search query.
SharePointIds
Struct that groups the various identifiers for an item stored in a SharePoint site or OneDrive for Business.
ShareableLink
Represents a collection of DriveItems.
Shared
Struct that indicates a DriveItem has been shared with others. The resource includes information about how the item is shared.
SpecialFolder
Struct that groups special folder-related data items into a single structure.
Token
Custom Token Struct
TokenError
Token Error Struct
Video
Struct that groups video-related data items into a single structure.

Enums§

SharingLinkScope
All the possible sharing link scopes that are supported
SharingLinkType
All the possible sharing link types that are supported

Constants§

API_BASE_URL
GENERATE_MS_OAUTH2_CREDENTIALS_INSTRUCTIONS

Traits§

Httper
Trait that describes HTTP related operations that can be performed
OneDriver
Trait that describe OneDrive related operations that can be performed.
TokenObtainer
Trait for obtaining a token