diff --git a/openapitools.json b/openapitools.json index 6f7db3e8..c1214330 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.12.0" + "version": "7.20.0" } } diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 0c5571e8..6210b166 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -12,4 +12,9 @@ serde_with = { version = "^3.8", default-features = false, features = ["base64", serde_json = "^1.0" serde_repr = "^0.1" url = "^2.5" -reqwest = { version = "^0.12", features = ["json", "multipart"] } +reqwest = { version = "^0.13", default-features = false, features = ["json", "multipart", "query", "form"] } + +[features] +default = ["native-tls"] +native-tls = ["reqwest/native-tls"] +rustls = ["reqwest/rustls"] diff --git a/rust/README.md b/rust/README.md index 14c1f9f4..80f8676b 100644 --- a/rust/README.md +++ b/rust/README.md @@ -217,7 +217,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 0.1.86 - Package version: 0.1.86 -- Generator version: 7.12.0 +- Generator version: 7.20.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` ## Installation diff --git a/rust/src/models/asset_onchain_metadata_cip25_description.rs b/rust/src/models/asset_onchain_metadata_cip25_description.rs index da1b9e6f..b7fa0dcf 100644 --- a/rust/src/models/asset_onchain_metadata_cip25_description.rs +++ b/rust/src/models/asset_onchain_metadata_cip25_description.rs @@ -17,7 +17,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum AssetOnchainMetadataCip25Description { String(String), - Array(Vec), + ArrayVecString(Vec), } impl Default for AssetOnchainMetadataCip25Description { diff --git a/rust/src/models/asset_onchain_metadata_cip25_files_inner_src.rs b/rust/src/models/asset_onchain_metadata_cip25_files_inner_src.rs index 4cbe44ae..0c2ec8c9 100644 --- a/rust/src/models/asset_onchain_metadata_cip25_files_inner_src.rs +++ b/rust/src/models/asset_onchain_metadata_cip25_files_inner_src.rs @@ -17,7 +17,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum AssetOnchainMetadataCip25FilesInnerSrc { String(String), - Array(Vec), + ArrayVecString(Vec), } impl Default for AssetOnchainMetadataCip25FilesInnerSrc { diff --git a/rust/src/models/asset_onchain_metadata_cip25_image.rs b/rust/src/models/asset_onchain_metadata_cip25_image.rs index 961b538d..a8843115 100644 --- a/rust/src/models/asset_onchain_metadata_cip25_image.rs +++ b/rust/src/models/asset_onchain_metadata_cip25_image.rs @@ -17,7 +17,7 @@ use serde::{Deserialize, Serialize}; #[serde(untagged)] pub enum AssetOnchainMetadataCip25Image { String(String), - Array(Vec), + ArrayVecString(Vec), } impl Default for AssetOnchainMetadataCip25Image { diff --git a/rust/src/models/register_signer_message.rs b/rust/src/models/register_signer_message.rs index eeed828e..dd0dbd07 100644 --- a/rust/src/models/register_signer_message.rs +++ b/rust/src/models/register_signer_message.rs @@ -13,13 +13,9 @@ use serde::{Deserialize, Serialize}; use serde_with::serde_as; -/// RegisterSignerMessage : This message represents a signing participant in the network. #[serde_as] #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RegisterSignerMessage { - /// Cardano chain epoch number - #[serde(rename = "epoch", skip_serializing_if = "Option::is_none")] - pub epoch: Option, /// The unique identifier of the signer #[serde(rename = "party_id")] pub party_id: String, @@ -38,18 +34,20 @@ pub struct RegisterSignerMessage { /// The number of updates of the KES secret key that signed the verification key #[serde(rename = "kes_period", skip_serializing_if = "Option::is_none")] pub kes_period: Option, + /// Cardano chain epoch number + #[serde(rename = "epoch", skip_serializing_if = "Option::is_none")] + pub epoch: Option, } impl RegisterSignerMessage { - /// This message represents a signing participant in the network. pub fn new(party_id: String, verification_key: Vec) -> RegisterSignerMessage { RegisterSignerMessage { - epoch: None, party_id, verification_key, verification_key_signature: None, operational_certificate: None, kes_period: None, + epoch: None, } } } diff --git a/rust/src/models/signer_registrations_list_item_message.rs b/rust/src/models/signer_registrations_list_item_message.rs index f1c708d0..ecb73f0f 100644 --- a/rust/src/models/signer_registrations_list_item_message.rs +++ b/rust/src/models/signer_registrations_list_item_message.rs @@ -11,23 +11,21 @@ use crate::models; use serde::{Deserialize, Serialize}; -/// SignerRegistrationsListItemMessage : represents an item of a SignerRegistrationsMessage registration #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct SignerRegistrationsListItemMessage { - /// The unique identifier of the signer - #[serde(rename = "party_id", skip_serializing_if = "Option::is_none")] - pub party_id: Option, /// Stake share as computed in the 'stake distribution' by the Cardano Node, multiplied by a billion (1.0e9) #[serde(rename = "stake")] pub stake: i64, + /// The unique identifier of the signer + #[serde(rename = "party_id", skip_serializing_if = "Option::is_none")] + pub party_id: Option, } impl SignerRegistrationsListItemMessage { - /// represents an item of a SignerRegistrationsMessage registration pub fn new(stake: i64) -> SignerRegistrationsListItemMessage { SignerRegistrationsListItemMessage { - party_id: None, stake, + party_id: None, } } }