pub struct Receipt {
pub ts: Option<MilliSecondsSinceUnixEpoch>,
}
Available on crate feature
events
only.Expand description
An acknowledgement of an event.
Fields
ts: Option<MilliSecondsSinceUnixEpoch>
The time when the receipt was sent.
Implementations
sourceimpl Receipt
impl Receipt
sourcepub fn new(ts: MilliSecondsSinceUnixEpoch) -> Self
pub fn new(ts: MilliSecondsSinceUnixEpoch) -> Self
Creates a new Receipt
with the given timestamp.
To create an empty receipt instead, use Receipt::default
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
sourcefn 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 RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more