Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rust-version = "1.90.0"

[workspace.dependencies]
bytes = "1.0"
chrono = { version = "0.4.42", features = ["serde"] }
derive_builder = "0.20"
flate2 = "1.0"
futures = "0.3"
Expand Down
1 change: 1 addition & 0 deletions crates/cloud-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ edition = "2024"

[dependencies]
bytes = { workspace = true }
chrono = { workspace = true }
derive_builder = { workspace = true }
flate2 = { workspace = true }
futures = { workspace = true }
Expand Down
17 changes: 9 additions & 8 deletions crates/cloud-sdk/src/applications/models.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use chrono::{DateTime, Utc};
use derive_builder::Builder;
use futures::Stream;
use reqwest::header::HeaderValue;
Expand Down Expand Up @@ -544,7 +545,7 @@ pub struct RequestProgressUpdated {
#[serde(default)]
pub attributes: Option<serde_json::Value>,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -554,7 +555,7 @@ pub struct RequestCreatedEvent {
pub application_version: String,
pub request_id: String,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -566,7 +567,7 @@ pub struct RequestFinishedEvent {
#[serde(default)]
pub outcome: RequestOutcome,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -576,7 +577,7 @@ pub struct RequestStartedEvent {
pub application_version: String,
pub request_id: String,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -588,7 +589,7 @@ pub struct FunctionRunCreated {
pub function_name: String,
pub function_run_id: String,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -602,7 +603,7 @@ pub struct FunctionRunAssigned {
pub allocation_id: String,
pub executor_id: String,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
Expand All @@ -624,7 +625,7 @@ pub struct FunctionRunCompleted {
pub allocation_id: String,
pub outcome: FunctionRunOutcomeSummary,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand All @@ -636,7 +637,7 @@ pub struct FunctionRunMatchedCache {
pub function_name: String,
pub function_run_id: String,
#[serde(default)]
pub created_at: i64,
pub created_at: DateTime<Utc>,
}

#[derive(Builder, Debug)]
Expand Down