alien-core 1.10.6

Deploy software into your customers' cloud accounts and keep it fully managed
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

#[cfg(feature = "openapi")]
use utoipa::ToSchema;

/// Represents a scheduled event trigger, typically from a cron job or timer.
///
/// This struct aims to provide a common representation for scheduled events
/// across different providers like AWS CloudWatch Events, Google Cloud Scheduler,
/// and Azure Timer Triggers.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "openapi", derive(ToSchema))]
#[serde(rename_all = "camelCase")]
pub struct ScheduledEvent {
    /// The timestamp when the event was scheduled or triggered.
    pub timestamp: DateTime<Utc>,
}