pub struct DeliveryResult {
pub status: DeliveryStatus,
pub provider: Option<String>,
pub error: Option<String>,
pub attempts: u32,
pub deliveries: Vec<ProviderOutcome>,
pub suppressed: Vec<String>,
}Expand description
The overall outcome of delivering one signal.
Fields§
§status: DeliveryStatus§provider: Option<String>The providers that delivered, comma separated in plan order
(slack,pagerduty), or None if none did.
error: Option<String>Why delivery failed. With more than one target, each failed target’s last error, prefixed with its provider.
attempts: u32Attempts made on the provider that decided the outcome; the most
any target needed when there are several. deliveries has the
count for every provider.
deliveries: Vec<ProviderOutcome>One entry per provider tried, in plan order.
suppressed: Vec<String>Matching routes held back by their dedup or rate_limit, one
line per route with the reason. A signal can be delivered on one
route and suppressed on another.
Implementations§
Trait Implementations§
Source§impl Clone for DeliveryResult
impl Clone for DeliveryResult
Source§fn clone(&self) -> DeliveryResult
fn clone(&self) -> DeliveryResult
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 DeliveryResult
impl Debug for DeliveryResult
Source§impl<'de> Deserialize<'de> for DeliveryResult
impl<'de> Deserialize<'de> for DeliveryResult
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 DeliveryResult
impl RefUnwindSafe for DeliveryResult
impl Send for DeliveryResult
impl Sync for DeliveryResult
impl Unpin for DeliveryResult
impl UnsafeUnpin for DeliveryResult
impl UnwindSafe for DeliveryResult
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