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 modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct LabelModification {
    #[serde(rename = "fieldModifications")]
    ///The list of modifications to this label's fields.
    pub field_modifications: ::alloc::vec::Vec<
        crate::discovery::schemas::label_field_modification::LabelFieldModification,
    >,
    #[serde(rename = "kind")]
    ///This is always drive#labelModification.
    pub kind: ::alloc::string::String,
    #[serde(rename = "labelId")]
    ///The ID of the label to modify.
    pub label_id: ::alloc::string::String,
    #[serde(rename = "removeLabel")]
    ///If true, the label will be removed from the file.
    pub remove_label: ::core::primitive::bool,
}
///A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct LabelModificationPartial {
    #[serde(rename = "fieldModifications")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The list of modifications to this label's fields.
    pub field_modifications: ::core::option::Option<
        ::alloc::vec::Vec<
            crate::discovery::schemas::label_field_modification::LabelFieldModificationPartial,
        >,
    >,
    #[serde(rename = "kind")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///This is always drive#labelModification.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "labelId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The ID of the label to modify.
    pub label_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "removeLabel")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///If true, the label will be removed from the file.
    pub remove_label: ::core::option::Option<::core::primitive::bool>,
}