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! 

///This resource represents a long-running operation that is the result of a network API call.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Operation {
    #[serde(rename = "done")]
    ///If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
    pub done: ::core::primitive::bool,
    #[serde(rename = "error")]
    pub error: ::alloc::boxed::Box<crate::discovery::schemas::status::Status>,
    #[serde(rename = "metadata")]
    ///Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    pub metadata: operation_metadata_additional::Metadata,
    #[serde(rename = "name")]
    ///The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
    pub name: ::alloc::string::String,
    #[serde(rename = "response")]
    ///The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    pub response: operation_response_additional::Response,
}
///This resource represents a long-running operation that is the result of a network API call.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct OperationPartial {
    #[serde(rename = "done")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
    pub done: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "error")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub error: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::status::StatusPartial>,
    >,
    #[serde(rename = "metadata")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    pub metadata: ::core::option::Option<operation_metadata_additional::MetadataPartial>,
    #[serde(rename = "name")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
    pub name: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "response")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    pub response: ::core::option::Option<operation_response_additional::ResponsePartial>,
}
pub mod operation_metadata_additional {
    use super::*;
    ///Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct Metadata {}
    ///Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct MetadataPartial {}
}
pub mod operation_response_additional {
    use super::*;
    ///The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct Response {}
    ///The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct ResponsePartial {}
}