pub struct PollSpec {
pub method: String,
pub url: String,
pub headers: HashMap<String, String>,
pub query: HashMap<String, String>,
pub interval_secs: u64,
pub timeout_secs: u64,
}Expand description
The poll request + cadence.
Fields§
§method: StringHTTP method (default GET).
url: StringStatus URL — absolute or base_url-relative; ${job_id} substituted.
headers: HashMap<String, String>Extra headers.
query: HashMap<String, String>Extra query params.
interval_secs: u64Seconds between polls (default 5).
timeout_secs: u64Give up after this many seconds (default 1800).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PollSpec
impl<'de> Deserialize<'de> for PollSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PollSpec
impl JsonSchema for PollSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for PollSpec
Auto Trait Implementations§
impl Freeze for PollSpec
impl RefUnwindSafe for PollSpec
impl Send for PollSpec
impl Sync for PollSpec
impl Unpin for PollSpec
impl UnsafeUnpin for PollSpec
impl UnwindSafe for PollSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more