From 4cb9a4e524c36bed4468d427f332aed1c483a4d1 Mon Sep 17 00:00:00 2001 From: wkargul Date: Tue, 24 Oct 2023 09:35:15 +0200 Subject: [PATCH] fix: fix DestinationDefinitionRead object --- src/models/destination_definition_read.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/destination_definition_read.rs b/src/models/destination_definition_read.rs index 8711b5d..dc5133b 100644 --- a/src/models/destination_definition_read.rs +++ b/src/models/destination_definition_read.rs @@ -10,6 +10,8 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct DestinationDefinitionRead { + #[serde(rename="custom")] + pub custom: bool, #[serde(rename = "destinationDefinitionId")] pub destination_definition_id: uuid::Uuid, #[serde(rename = "name")] @@ -29,7 +31,7 @@ pub struct DestinationDefinitionRead { pub release_stage: Option, /// The date when this connector was first released, in yyyy-mm-dd format. #[serde(rename = "releaseDate", skip_serializing_if = "Option::is_none")] - pub release_date: Option, + pub release_date: Option>, #[serde( rename = "resourceRequirements", skip_serializing_if = "Option::is_none" @@ -44,6 +46,7 @@ pub struct DestinationDefinitionRead { impl DestinationDefinitionRead { pub fn new( + custom: bool, destination_definition_id: uuid::Uuid, name: String, docker_repository: String, @@ -53,6 +56,7 @@ impl DestinationDefinitionRead { normalization_config: crate::models::NormalizationDestinationDefinitionConfig, ) -> DestinationDefinitionRead { DestinationDefinitionRead { + custom, destination_definition_id, name, docker_repository,