mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-androidpublisher2"
|
||||
version = "1.0.10+20190702"
|
||||
version = "1.0.11+20190702"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Android Publisher (protocol v2)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher2"
|
||||
homepage = "https://developers.google.com/android-publisher"
|
||||
documentation = "https://docs.rs/google-androidpublisher2/1.0.10+20190702"
|
||||
documentation = "https://docs.rs/google-androidpublisher2/1.0.11+20190702"
|
||||
license = "MIT"
|
||||
keywords = ["androidpublisher", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
@@ -24,9 +24,12 @@ mime = "^ 0.2.0"
|
||||
serde = "^ 1.0"
|
||||
serde_json = "^ 1.0"
|
||||
serde_derive = "^ 1.0"
|
||||
yup-oauth2 = "^ 1.0"
|
||||
yup-oauth2 = { version = "^ 1.0", default-features = false }
|
||||
url = "= 1.7"
|
||||
|
||||
[features]
|
||||
default = ["openssl"]
|
||||
openssl = ["yup-oauth2/default"]
|
||||
rustls = ["yup-oauth2/no-openssl"]
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -72,24 +72,24 @@ pub struct JsonServerError {
|
||||
/// The latter happen if the sent parameters or request structures are unsound
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct ErrorResponse {
|
||||
error: ServerError,
|
||||
pub error: ServerError,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct ServerError {
|
||||
errors: Vec<ServerMessage>,
|
||||
code: u16,
|
||||
message: String,
|
||||
pub errors: Vec<ServerMessage>,
|
||||
pub code: u16,
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct ServerMessage {
|
||||
domain: String,
|
||||
reason: String,
|
||||
message: String,
|
||||
pub domain: String,
|
||||
pub reason: String,
|
||||
pub message: String,
|
||||
#[serde(rename="locationType")]
|
||||
location_type: Option<String>,
|
||||
location: Option<String>
|
||||
pub location_type: Option<String>,
|
||||
pub location: Option<String>
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Android Publisher* crate version *1.0.10+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.10*.
|
||||
//! This documentation was generated from *Android Publisher* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*.
|
||||
//!
|
||||
//! Everything else about the *Android Publisher* *v2* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/android-publisher).
|
||||
@@ -350,7 +350,7 @@ impl<'a, C, A> AndroidPublisher<C, A>
|
||||
AndroidPublisher {
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/1.0.10".to_string(),
|
||||
_user_agent: "google-api-rust-client/1.0.11".to_string(),
|
||||
_base_url: "https://www.googleapis.com/androidpublisher/v2/applications/".to_string(),
|
||||
_root_url: "https://www.googleapis.com/".to_string(),
|
||||
}
|
||||
@@ -373,7 +373,7 @@ impl<'a, C, A> AndroidPublisher<C, A>
|
||||
}
|
||||
|
||||
/// Set the user-agent header field to use in all requests to the server.
|
||||
/// It defaults to `google-api-rust-client/1.0.10`.
|
||||
/// It defaults to `google-api-rust-client/1.0.11`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user