pub struct NotificationAttempt {
pub sent_time: i64,
pub duration: i32,
pub response_code: Option<i32>,
pub failure_reason: Option<FailureReason>,
}Fields§
§sent_time: i64The time when the attempt was sent in milliseconds.
duration: i32The duration of the attempt in milliseconds.
response_code: Option<i32>The response code of the attempt, when missing refer to failureReason.
failure_reason: Option<FailureReason>The request failure reason in case responseCode is missing.
Implementations§
Source§impl NotificationAttempt
impl NotificationAttempt
pub fn new(sent_time: i64, duration: i32) -> NotificationAttempt
Trait Implementations§
Source§impl Clone for NotificationAttempt
impl Clone for NotificationAttempt
Source§fn clone(&self) -> NotificationAttempt
fn clone(&self) -> NotificationAttempt
Returns a duplicate of the value. Read more
1.0.0 · 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 NotificationAttempt
impl Debug for NotificationAttempt
Source§impl Default for NotificationAttempt
impl Default for NotificationAttempt
Source§fn default() -> NotificationAttempt
fn default() -> NotificationAttempt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationAttempt
impl<'de> Deserialize<'de> for NotificationAttempt
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 PartialEq for NotificationAttempt
impl PartialEq for NotificationAttempt
Source§impl Serialize for NotificationAttempt
impl Serialize for NotificationAttempt
impl StructuralPartialEq for NotificationAttempt
Auto Trait Implementations§
impl Freeze for NotificationAttempt
impl RefUnwindSafe for NotificationAttempt
impl Send for NotificationAttempt
impl Sync for NotificationAttempt
impl Unpin for NotificationAttempt
impl UnwindSafe for NotificationAttempt
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