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 notification channel used to watch for resource changes.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Channel {
    #[serde(rename = "address")]
    ///The address where notifications are delivered for this channel.
    pub address: ::alloc::string::String,
    #[serde(rename = "expiration")]
    ///Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
    pub expiration: ::alloc::string::String,
    #[serde(rename = "id")]
    ///A UUID or similar unique string that identifies this channel.
    pub id: ::alloc::string::String,
    #[serde(rename = "kind")]
    ///Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
    pub kind: ::alloc::string::String,
    #[serde(rename = "params")]
    ///Additional parameters controlling delivery channel behavior. Optional.
    pub params: channel_params_additional::Params,
    #[serde(rename = "payload")]
    ///A Boolean value to indicate whether payload is wanted. Optional.
    pub payload: ::core::primitive::bool,
    #[serde(rename = "resourceId")]
    ///An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
    pub resource_id: ::alloc::string::String,
    #[serde(rename = "resourceUri")]
    ///A version-specific identifier for the watched resource.
    pub resource_uri: ::alloc::string::String,
    #[serde(rename = "token")]
    ///An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
    pub token: ::alloc::string::String,
    #[serde(rename = "type")]
    ///The type of delivery mechanism used for this channel. Valid values are "web_hook" or "webhook".
    pub type_: ::alloc::string::String,
}
///A notification channel used to watch for resource changes.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ChannelPartial {
    #[serde(rename = "address")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The address where notifications are delivered for this channel.
    pub address: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "expiration")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
    pub expiration: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "id")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A UUID or similar unique string that identifies this channel.
    pub id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "kind")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "params")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Additional parameters controlling delivery channel behavior. Optional.
    pub params: ::core::option::Option<channel_params_additional::ParamsPartial>,
    #[serde(rename = "payload")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A Boolean value to indicate whether payload is wanted. Optional.
    pub payload: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "resourceId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
    pub resource_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "resourceUri")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A version-specific identifier for the watched resource.
    pub resource_uri: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "token")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
    pub token: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The type of delivery mechanism used for this channel. Valid values are "web_hook" or "webhook".
    pub type_: ::core::option::Option<::alloc::string::String>,
}
pub mod channel_params_additional {
    use super::*;
    ///Additional parameters controlling delivery channel behavior. Optional.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct Params {}
    ///Additional parameters controlling delivery channel behavior. Optional.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct ParamsPartial {}
}