pub struct PostPublishPollConfig {
pub enabled: bool,
pub interval: HumanDuration,
pub timeout: HumanDuration,
}Expand description
Per-publisher post-publish polling config block.
See module-level docs for the polling lifecycle. Default values:
enabled: true, interval: 30s, timeout: 30m.
Fields§
§enabled: boolWhether to poll at all. Default true. Setting false disables
polling without removing the config block (parity with every
skip: toggle elsewhere in the schema).
interval: HumanDurationHow long to wait between successive status checks. Default 30s.
timeout: HumanDurationTotal wall-clock budget for polling. When exhausted, the poller
emits PostPublishStatus::Timeout with the last observed state.
Default 30m.
Implementations§
Source§impl PostPublishPollConfig
impl PostPublishPollConfig
Sourcepub const DEFAULT_INTERVAL: Duration
pub const DEFAULT_INTERVAL: Duration
Default interval between successive polls (30 seconds).
Sourcepub const DEFAULT_TIMEOUT: Duration
pub const DEFAULT_TIMEOUT: Duration
Default total polling budget (30 minutes).
Trait Implementations§
Source§impl Clone for PostPublishPollConfig
impl Clone for PostPublishPollConfig
Source§fn clone(&self) -> PostPublishPollConfig
fn clone(&self) -> PostPublishPollConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostPublishPollConfig
impl Debug for PostPublishPollConfig
Source§impl Default for PostPublishPollConfig
impl Default for PostPublishPollConfig
Source§impl<'de> Deserialize<'de> for PostPublishPollConfigwhere
PostPublishPollConfig: Default,
impl<'de> Deserialize<'de> for PostPublishPollConfigwhere
PostPublishPollConfig: Default,
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 PostPublishPollConfig
impl JsonSchema for PostPublishPollConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for PostPublishPollConfig
impl Serialize for PostPublishPollConfig
impl Copy for PostPublishPollConfig
Auto Trait Implementations§
impl Freeze for PostPublishPollConfig
impl RefUnwindSafe for PostPublishPollConfig
impl Send for PostPublishPollConfig
impl Sync for PostPublishPollConfig
impl Unpin for PostPublishPollConfig
impl UnsafeUnpin for PostPublishPollConfig
impl UnwindSafe for PostPublishPollConfig
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