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! 

///Representation of field, which is a typed key-value pair.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct LabelField {
    #[serde(rename = "dateString")]
    ///Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
    pub date_string: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "id")]
    ///The identifier of this label field.
    pub id: ::alloc::string::String,
    #[serde(rename = "integer")]
    ///Only present if `valueType` is `integer`.
    pub integer: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "kind")]
    ///This is always drive#labelField.
    pub kind: ::alloc::string::String,
    #[serde(rename = "selection")]
    ///Only present if `valueType` is `selection`
    pub selection: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "text")]
    ///Only present if `valueType` is `text`.
    pub text: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "user")]
    ///Only present if `valueType` is `user`.
    pub user: ::alloc::vec::Vec<crate::discovery::schemas::user::User>,
    #[serde(rename = "valueType")]
    ///The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
    pub value_type: ::alloc::string::String,
}
///Representation of field, which is a typed key-value pair.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct LabelFieldPartial {
    #[serde(rename = "dateString")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
    pub date_string: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
    #[serde(rename = "id")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The identifier of this label field.
    pub id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "integer")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Only present if `valueType` is `integer`.
    pub integer: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
    #[serde(rename = "kind")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///This is always drive#labelField.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "selection")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Only present if `valueType` is `selection`
    pub selection: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
    #[serde(rename = "text")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Only present if `valueType` is `text`.
    pub text: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
    #[serde(rename = "user")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Only present if `valueType` is `user`.
    pub user: ::core::option::Option<
        ::alloc::vec::Vec<crate::discovery::schemas::user::UserPartial>,
    >,
    #[serde(rename = "valueType")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`
    pub value_type: ::core::option::Option<::alloc::string::String>,
}