Struct onedrive_api::resource::Drive
source · #[non_exhaustive]pub struct Drive {Show 16 fields
pub id: Option<DriveId>,
pub created_by: Option<JsonValue>,
pub created_date_time: Option<TimestampString>,
pub description: Option<String>,
pub drive_type: Option<JsonValue>,
pub items: Option<Vec<DriveItem>>,
pub last_modified_by: Option<JsonValue>,
pub last_modified_date_time: Option<TimestampString>,
pub name: Option<String>,
pub owner: Option<JsonValue>,
pub quota: Option<JsonValue>,
pub root: Option<DriveItem>,
pub sharepoint_ids: Option<JsonValue>,
pub special: Option<Vec<DriveItem>>,
pub system: Option<JsonValue>,
pub web_url: Option<Url>,
}Expand description
Drive resource type
The drive resource is the top level object representing a user’s OneDrive or a document library in SharePoint.
§See also
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<DriveId>§created_by: Option<JsonValue>§created_date_time: Option<TimestampString>§description: Option<String>§drive_type: Option<JsonValue>§items: Option<Vec<DriveItem>>§last_modified_by: Option<JsonValue>§last_modified_date_time: Option<TimestampString>§name: Option<String>§owner: Option<JsonValue>§quota: Option<JsonValue>§root: Option<DriveItem>§special: Option<Vec<DriveItem>>§system: Option<JsonValue>§web_url: Option<Url>Trait Implementations§
source§impl<'de> Deserialize<'de> for Drive
impl<'de> Deserialize<'de> for Drive
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 Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnwindSafe for Drive
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