1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Stedi Event Destinations
*
* The Stedi Events Service manages event destinations and event delivery. It supports destination CRUD operations, secret management for signature verification, event creation and management, and delivery tracking with resend capabilities.
*
* The version of the OpenAPI document: 2026-02-01
* Contact: healthcare@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::event_destinations::models;
use serde::{Deserialize, Serialize};
/// EventDestinationsGetDestinationResponseContent : Output containing the destination details.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EventDestinationsGetDestinationResponseContent {
/// The maximum number of concurrent deliveries for this destination. Contact Stedi to change your account limits.
#[serde(rename = "concurrencyLimit", skip_serializing_if = "Option::is_none")]
pub concurrency_limit: Option<f64>,
/// Creation timestamp for this destination.
#[serde(rename = "createdAt")]
pub created_at: chrono::DateTime<chrono::FixedOffset>,
/// A description of the destination's purpose, such as \"Receives transaction enrollment task notifications.\"
#[serde(rename = "description")]
pub description: String,
/// The URL where Stedi delivers payloads through HTTP `POST`.
#[serde(rename = "destinationUrl")]
pub destination_url: String,
/// The event types Stedi sends to this destination. Visit [event types](https://www.stedi.com/docs/healthcare/event-destinations-event-types) for a complete list.
#[serde(rename = "eventTypes")]
pub event_types: Vec<String>,
/// The unique identifier for the destination.
#[serde(rename = "id")]
pub id: String,
/// The timestamp for Stedi's most recent delivery attempt to this destination. Absent when Stedi hasn't yet attempted a delivery.
#[serde(rename = "lastDeliveryTime", skip_serializing_if = "Option::is_none")]
pub last_delivery_time: Option<chrono::DateTime<chrono::FixedOffset>>,
/// A human-readable name for the destination. Stedi displays this name in the portal.
#[serde(rename = "name")]
pub name: String,
/// The destination's current status. Stedi only sends event payloads to `ENABLED` destinations.
#[serde(rename = "status")]
pub status: models::DestinationStatus,
/// Last update timestamp for this destination.
#[serde(rename = "updatedAt")]
pub updated_at: chrono::DateTime<chrono::FixedOffset>,
}
impl EventDestinationsGetDestinationResponseContent {
/// Output containing the destination details.
pub fn new(created_at: chrono::DateTime<chrono::FixedOffset>, description: String, destination_url: String, event_types: Vec<String>, id: String, name: String, status: models::DestinationStatus, updated_at: chrono::DateTime<chrono::FixedOffset>) -> EventDestinationsGetDestinationResponseContent {
EventDestinationsGetDestinationResponseContent {
concurrency_limit: None,
created_at,
description,
destination_url,
event_types,
id,
last_delivery_time: None,
name,
status,
updated_at,
}
}
}