pub struct WebhookStatus {
pub configured: bool,
pub port: Option<u16>,
pub healthy: bool,
pub fallback_mode: bool,
pub last_check_utc: Option<DateTime<Utc>>,
pub last_failure_reason: Option<String>,
pub startup_attempts: u32,
}Expand description
Persisted webhook health state.
Fields§
§configured: boolWhether webhooks are enabled in config.
port: Option<u16>Listening port (None when disabled or not yet bound).
healthy: boolWhether the last health-check ping succeeded.
fallback_mode: boolTrue when the engine has fallen back to polling due to startup failure.
last_check_utc: Option<DateTime<Utc>>UTC timestamp of the last health-check attempt.
last_failure_reason: Option<String>Human-readable reason for the last failure (cleared on recovery).
startup_attempts: u32How many bind attempts were made at startup.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookStatus
impl Clone for WebhookStatus
Source§impl Debug for WebhookStatus
impl Debug for WebhookStatus
Source§impl Default for WebhookStatus
impl Default for WebhookStatus
Source§impl<'de> Deserialize<'de> for WebhookStatus
impl<'de> Deserialize<'de> for WebhookStatus
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
Auto Trait Implementations§
impl Freeze for WebhookStatus
impl RefUnwindSafe for WebhookStatus
impl Send for WebhookStatus
impl Sync for WebhookStatus
impl Unpin for WebhookStatus
impl UnsafeUnpin for WebhookStatus
impl UnwindSafe for WebhookStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more