pub struct StorableNotification {
pub channel_id: Uuid,
pub version: String,
pub timestamp: u64,
pub ttl: u64,
pub topic: Option<String>,
pub data: Option<String>,
pub sortkey_timestamp: Option<u64>,
pub headers: Option<HashMap<String, String>>,
pub reliability_id: Option<String>,
pub reliable_state: Option<ReliabilityState>,
}Expand description
A Publishable Notification record. This is a notification that is either received from a third party or is outbound to a UserAgent.
Fields§
§channel_id: Uuid§version: String§timestamp: u64§ttl: u64§topic: Option<String>§data: Option<String>§sortkey_timestamp: Option<u64>§headers: Option<HashMap<String, String>>§reliability_id: Option<String>§reliable_state: Option<ReliabilityState>Trait Implementations§
Source§impl Clone for StorableNotification
impl Clone for StorableNotification
Source§fn clone(&self) -> StorableNotification
fn clone(&self) -> StorableNotification
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 StorableNotification
impl Debug for StorableNotification
Source§impl Default for StorableNotification
impl Default for StorableNotification
Source§fn default() -> StorableNotification
fn default() -> StorableNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorableNotification
impl<'de> Deserialize<'de> for StorableNotification
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 From<Notification> for StorableNotification
impl From<Notification> for StorableNotification
Source§fn from(notification: Notification) -> Self
fn from(notification: Notification) -> Self
Converts to this type from the input type.
Source§impl From<StorableNotification> for Notification
impl From<StorableNotification> for Notification
Source§fn from(storable: StorableNotification) -> Self
fn from(storable: StorableNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorableNotification
impl RefUnwindSafe for StorableNotification
impl Send for StorableNotification
impl Sync for StorableNotification
impl Unpin for StorableNotification
impl UnwindSafe for StorableNotification
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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