gapirs-drive-v3 0.0.1

Rust library for Google API drive v0.0.1
Documentation
// This file was generated by code-gen. DO NOT EDIT MANUALLY! 

///A change to a file or shared drive.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Change {
    #[serde(rename = "changeType")]
    ///The type of the change. Possible values are `file` and `drive`.
    pub change_type: ::alloc::string::String,
    #[serde(rename = "drive")]
    pub drive: ::alloc::boxed::Box<crate::discovery::schemas::drive::Drive>,
    #[serde(rename = "driveId")]
    ///The ID of the shared drive associated with this change.
    pub drive_id: ::alloc::string::String,
    #[serde(rename = "file")]
    pub file: ::alloc::boxed::Box<crate::discovery::schemas::file::File>,
    #[serde(rename = "fileId")]
    ///The ID of the file which has changed.
    pub file_id: ::alloc::string::String,
    #[serde(rename = "kind")]
    ///Identifies what kind of resource this is. Value: the fixed string `"drive#change"`.
    pub kind: ::alloc::string::String,
    #[serde(rename = "removed")]
    ///Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
    pub removed: ::core::primitive::bool,
    #[serde(rename = "teamDrive")]
    pub team_drive: ::alloc::boxed::Box<
        crate::discovery::schemas::team_drive::TeamDrive,
    >,
    #[serde(rename = "teamDriveId")]
    ///Deprecated: Use `driveId` instead.
    pub team_drive_id: ::alloc::string::String,
    #[serde(rename = "time")]
    ///The time of this change (RFC 3339 date-time).
    pub time: ::alloc::string::String,
    #[serde(rename = "type")]
    ///Deprecated: Use `changeType` instead.
    pub type_: ::alloc::string::String,
}
///A change to a file or shared drive.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ChangePartial {
    #[serde(rename = "changeType")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The type of the change. Possible values are `file` and `drive`.
    pub change_type: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "drive")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub drive: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::drive::DrivePartial>,
    >,
    #[serde(rename = "driveId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The ID of the shared drive associated with this change.
    pub drive_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "file")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub file: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::file::FilePartial>,
    >,
    #[serde(rename = "fileId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The ID of the file which has changed.
    pub file_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "kind")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Identifies what kind of resource this is. Value: the fixed string `"drive#change"`.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "removed")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
    pub removed: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "teamDrive")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub team_drive: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::team_drive::TeamDrivePartial>,
    >,
    #[serde(rename = "teamDriveId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Deprecated: Use `driveId` instead.
    pub team_drive_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "time")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The time of this change (RFC 3339 date-time).
    pub time: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Deprecated: Use `changeType` instead.
    pub type_: ::core::option::Option<::alloc::string::String>,
}