Skip to content

Commit

Permalink
Merge branch 'kek/deploy-volumes' of https://github.com/golemfactory/…
Browse files Browse the repository at this point in the history
…ya-client into kek/deploy-volumes
  • Loading branch information
kamirr committed Sep 3, 2024
2 parents 05600db + adbebcd commit 4474684
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions model/src/payment/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,19 @@ pub struct FilterParams {
pub after_timestamp: Option<DateTime<Utc>>,
}

// Event params has to be flattened by hand due to bug in actix Params serialization
// https://github.com/nox/serde_urlencoded/issues/33
#[derive(Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct DriverNetworkParams {
#[serde(flatten)]
pub event_params: EventParams,
#[serde(default)]
pub timeout: Option<f64>,
#[serde(default)]
pub after_timestamp: Option<DateTime<Utc>>,
#[serde(default)]
pub max_events: Option<u32>,
#[serde(default)]
pub app_session_id: Option<String>,
#[serde(default)]
pub network: Option<String>,
#[serde(default)]
Expand Down

0 comments on commit 4474684

Please sign in to comment.