Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/models/destination_definition_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -29,7 +31,7 @@ pub struct DestinationDefinitionRead {
pub release_stage: Option<crate::models::ReleaseStage>,
/// 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<String>,
pub release_date: Option<Vec<u16>>,
#[serde(
rename = "resourceRequirements",
skip_serializing_if = "Option::is_none"
Expand All @@ -44,6 +46,7 @@ pub struct DestinationDefinitionRead {

impl DestinationDefinitionRead {
pub fn new(
custom: bool,
destination_definition_id: uuid::Uuid,
name: String,
docker_repository: String,
Expand All @@ -53,6 +56,7 @@ impl DestinationDefinitionRead {
normalization_config: crate::models::NormalizationDestinationDefinitionConfig,
) -> DestinationDefinitionRead {
DestinationDefinitionRead {
custom,
destination_definition_id,
name,
docker_repository,
Expand Down