Skip to content

Commit

Permalink
Fix missing chrono import, cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbifish authored and ashleymichal committed Apr 15, 2020
1 parent c62fd05 commit a838613
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cloudflare/src/endpoints/account/list_accounts.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -27,5 +27,5 @@ impl Endpoint<Vec<Account>, ListAccountsParams> for ListAccounts {
pub struct ListAccountsParams {
pub page: Option<u32>,
pub per_page: Option<u32>,
pub direction: Option<OrderDirection>
pub direction: Option<OrderDirection>,
}
5 changes: 4 additions & 1 deletion cloudflare/src/endpoints/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ impl<'a> Endpoint<DnsRecord, (), UpdateDnsRecordParams<'a>> 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<UpdateDnsRecordParams<'a>> {
Some(self.params.clone())
Expand Down
6 changes: 3 additions & 3 deletions cloudflare/src/endpoints/workers/create_tail_heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
3 changes: 2 additions & 1 deletion cloudflare/src/endpoints/workers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::framework::response::ApiResult;

use chrono::{DateTime, Utc};
use serde::Deserialize;

mod create_route;
Expand All @@ -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;
Expand Down

0 comments on commit a838613

Please sign in to comment.