From 9a7bf0db9bc4be4eb6b6c68affd89294b33b56d5 Mon Sep 17 00:00:00 2001 From: Ashley Michal Lewis Date: Wed, 18 Mar 2020 11:05:46 -0500 Subject: [PATCH] s/create_tail_heartbeat/send_tail_heartbeat/g --- cloudflare/src/endpoints/workers/mod.rs | 4 ++-- .../{create_tail_heartbeat.rs => send_tail_heartbeat.rs} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename cloudflare/src/endpoints/workers/{create_tail_heartbeat.rs => send_tail_heartbeat.rs} (86%) diff --git a/cloudflare/src/endpoints/workers/mod.rs b/cloudflare/src/endpoints/workers/mod.rs index 5d7c1271..1d3ea8ed 100644 --- a/cloudflare/src/endpoints/workers/mod.rs +++ b/cloudflare/src/endpoints/workers/mod.rs @@ -6,24 +6,24 @@ use serde::Deserialize; mod create_route; mod create_secret; mod create_tail; -mod create_tail_heartbeat; mod delete_route; mod delete_secret; mod delete_tail; mod list_routes; mod list_secrets; mod list_tails; +mod send_tail_heartbeat; 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 delete_route::DeleteRoute; pub use delete_secret::DeleteSecret; pub use delete_tail::DeleteTail; pub use list_routes::ListRoutes; pub use list_secrets::ListSecrets; pub use list_tails::ListTails; +pub use send_tail_heartbeat::SendTailHeartbeat; /// Workers KV Route /// Routes are basic patterns used to enable or disable workers that match requests. diff --git a/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs b/cloudflare/src/endpoints/workers/send_tail_heartbeat.rs similarity index 86% rename from cloudflare/src/endpoints/workers/create_tail_heartbeat.rs rename to cloudflare/src/endpoints/workers/send_tail_heartbeat.rs index d6e3ed72..296cd95a 100644 --- a/cloudflare/src/endpoints/workers/create_tail_heartbeat.rs +++ b/cloudflare/src/endpoints/workers/send_tail_heartbeat.rs @@ -4,7 +4,7 @@ use crate::framework::endpoint::{Endpoint, Method}; /// Send Tail Heartbeat /// https://api.cloudflare.com/#worker-tail-heartbeat -pub struct CreateTailHeartbeat<'a> { +pub struct SendTailHeartbeat<'a> { /// Account ID of owner of the script pub account_identifier: &'a str, /// The name of the script to tail @@ -13,7 +13,7 @@ pub struct CreateTailHeartbeat<'a> { pub tail_id: &'a str, } -impl<'a> Endpoint for CreateTailHeartbeat<'a> { +impl<'a> Endpoint for SendTailHeartbeat<'a> { fn method(&self) -> Method { Method::Post }