diff --git a/cloudflare/src/endpoints/account/list_accounts.rs b/cloudflare/src/endpoints/account/list_accounts.rs index fde65a4b..3e794017 100644 --- a/cloudflare/src/endpoints/account/list_accounts.rs +++ b/cloudflare/src/endpoints/account/list_accounts.rs @@ -1,7 +1,7 @@ use super::Account; -use crate::framework::OrderDirection; use crate::framework::endpoint::{Endpoint, Method}; +use crate::framework::OrderDirection; /// List Accounts /// List all accounts you have ownership or verified access to @@ -27,5 +27,5 @@ impl Endpoint, ListAccountsParams> for ListAccounts { pub struct ListAccountsParams { pub page: Option, pub per_page: Option, - pub direction: Option + pub direction: Option, } diff --git a/cloudflare/src/endpoints/dns.rs b/cloudflare/src/endpoints/dns.rs index 91066b0b..bbcbe37f 100644 --- a/cloudflare/src/endpoints/dns.rs +++ b/cloudflare/src/endpoints/dns.rs @@ -93,7 +93,10 @@ impl<'a> Endpoint> for UpdateDnsRecord< Method::Put } fn path(&self) -> String { - format!("zones/{}/dns_records/{}", self.zone_identifier, self.identifier) + format!( + "zones/{}/dns_records/{}", + self.zone_identifier, self.identifier + ) } fn body(&self) -> Option> { Some(self.params.clone()) diff --git a/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs b/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs index 44b832ac..d6e3ed72 100644 --- a/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs +++ b/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs @@ -2,14 +2,14 @@ use super::WorkersTail; use crate::framework::endpoint::{Endpoint, Method}; -/// Create Tail -/// https://api.cloudflare.com/#worker-create-tail +/// Send Tail Heartbeat +/// https://api.cloudflare.com/#worker-tail-heartbeat pub struct CreateTailHeartbeat<'a> { /// Account ID of owner of the script pub account_identifier: &'a str, /// The name of the script to tail pub script_name: &'a str, - /// The unique identifier of the Tail session + /// The unique identifier of the tail session pub tail_id: &'a str, } diff --git a/cloudflare/src/endpoints/workers/mod.rs b/cloudflare/src/endpoints/workers/mod.rs index 336da3f1..5d7c1271 100644 --- a/cloudflare/src/endpoints/workers/mod.rs +++ b/cloudflare/src/endpoints/workers/mod.rs @@ -1,5 +1,6 @@ use crate::framework::response::ApiResult; +use chrono::{DateTime, Utc}; use serde::Deserialize; mod create_route; @@ -16,7 +17,7 @@ mod list_tails; pub use create_route::{CreateRoute, CreateRouteParams}; pub use create_secret::{CreateSecret, CreateSecretParams}; pub use create_tail::{CreateTail, CreateTailParams}; -pub use create_tail_heartbeat::{CreateTailHeartbeat}; +pub use create_tail_heartbeat::CreateTailHeartbeat; pub use delete_route::DeleteRoute; pub use delete_secret::DeleteSecret; pub use delete_tail::DeleteTail;