Skip to content

Commit c48aa36

Browse files
authored
style: cargo fmt (#5)
* build: run cargo fmt after generate * style: run cargo fmt
1 parent 8e3e895 commit c48aa36

File tree

839 files changed

+42415
-17777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

839 files changed

+42415
-17777
lines changed

generate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ for spec_file in "$@"; do
4343
sed --in-place "$sed_crate_version" "${name}/Cargo.toml"
4444
sed --in-place "$sed_readme_version" "${name}/README.md"
4545
sed --in-place "$sed_readme_trim_docs" "${name}/README.md"
46+
47+
(cd "${name}" && cargo fmt)
4648
done

twilio-oai-accounts-v1/src/apis/configuration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
1211
use reqwest;
1312

1413
#[derive(Debug, Clone)]

twilio-oai-accounts-v1/src/apis/default_api.rs

Lines changed: 407 additions & 145 deletions
Large diffs are not rendered by default.

twilio-oai-accounts-v1/src/apis/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum Error<T> {
1616
ResponseError(ResponseContent<T>),
1717
}
1818

19-
impl <T> fmt::Display for Error<T> {
19+
impl<T> fmt::Display for Error<T> {
2020
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2121
let (module, e) = match self {
2222
Error::Reqwest(e) => ("reqwest", e.to_string()),
@@ -28,7 +28,7 @@ impl <T> fmt::Display for Error<T> {
2828
}
2929
}
3030

31-
impl <T: fmt::Debug> error::Error for Error<T> {
31+
impl<T: fmt::Debug> error::Error for Error<T> {
3232
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
3333
Some(match self {
3434
Error::Reqwest(e) => e,
@@ -39,19 +39,19 @@ impl <T: fmt::Debug> error::Error for Error<T> {
3939
}
4040
}
4141

42-
impl <T> From<reqwest::Error> for Error<T> {
42+
impl<T> From<reqwest::Error> for Error<T> {
4343
fn from(e: reqwest::Error) -> Self {
4444
Error::Reqwest(e)
4545
}
4646
}
4747

48-
impl <T> From<serde_json::Error> for Error<T> {
48+
impl<T> From<serde_json::Error> for Error<T> {
4949
fn from(e: serde_json::Error) -> Self {
5050
Error::Serde(e)
5151
}
5252
}
5353

54-
impl <T> From<std::io::Error> for Error<T> {
54+
impl<T> From<std::io::Error> for Error<T> {
5555
fn from(e: std::io::Error) -> Self {
5656
Error::Io(e)
5757
}

twilio-oai-accounts-v1/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#[macro_use]
22
extern crate serde_derive;
33

4+
extern crate reqwest;
45
extern crate serde;
56
extern crate serde_json;
67
extern crate url;
7-
extern crate reqwest;
88

99
pub mod apis;
1010
pub mod models;

twilio-oai-accounts-v1/src/models/accounts_v1_auth_token_promotion.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
1411
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1512
pub struct AccountsV1AuthTokenPromotion {
1613
/// The SID of the Account that the secondary Auth Token was created for
@@ -41,5 +38,3 @@ impl AccountsV1AuthTokenPromotion {
4138
}
4239
}
4340
}
44-
45-

twilio-oai-accounts-v1/src/models/accounts_v1_credential_credential_aws.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
1411
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1512
pub struct AccountsV1CredentialCredentialAws {
1613
/// The SID of the Account that created the resource
@@ -45,5 +42,3 @@ impl AccountsV1CredentialCredentialAws {
4542
}
4643
}
4744
}
48-
49-

twilio-oai-accounts-v1/src/models/accounts_v1_credential_credential_public_key.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
1411
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1512
pub struct AccountsV1CredentialCredentialPublicKey {
1613
/// The SID of the Account that created the Credential that the PublicKey resource belongs to
@@ -45,5 +42,3 @@ impl AccountsV1CredentialCredentialPublicKey {
4542
}
4643
}
4744
}
48-
49-

twilio-oai-accounts-v1/src/models/accounts_v1_secondary_auth_token.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
1411
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1512
pub struct AccountsV1SecondaryAuthToken {
1613
/// The SID of the Account that the secondary Auth Token was created for
@@ -23,7 +20,10 @@ pub struct AccountsV1SecondaryAuthToken {
2320
#[serde(rename = "date_updated", skip_serializing_if = "Option::is_none")]
2421
pub date_updated: Option<String>,
2522
/// The generated secondary Auth Token
26-
#[serde(rename = "secondary_auth_token", skip_serializing_if = "Option::is_none")]
23+
#[serde(
24+
rename = "secondary_auth_token",
25+
skip_serializing_if = "Option::is_none"
26+
)]
2727
pub secondary_auth_token: Option<String>,
2828
/// The URI for this resource, relative to `https://accounts.twilio.com`
2929
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
@@ -41,5 +41,3 @@ impl AccountsV1SecondaryAuthToken {
4141
}
4242
}
4343
}
44-
45-

twilio-oai-accounts-v1/src/models/list_credential_aws_response.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
1411
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1512
pub struct ListCredentialAwsResponse {
1613
#[serde(rename = "credentials", skip_serializing_if = "Option::is_none")]
@@ -27,5 +24,3 @@ impl ListCredentialAwsResponse {
2724
}
2825
}
2926
}
30-
31-

0 commit comments

Comments
 (0)