pub struct SubscriptionData {
pub topic: Topic,
pub message: Arc<str>,
pub attestation: Option<Arc<str>>,
pub published_at: i64,
pub tag: u32,
}Expand description
Data structure representing subscription message params.
Fields§
§topic: TopicThe topic of the subscription.
message: Arc<str>The message for the subscription.
attestation: Option<Arc<str>>§published_at: i64Message publish timestamp in UTC milliseconds.
tag: u32A label that identifies what type of message is sent based on the RPC method used.
Trait Implementations§
Source§impl Clone for SubscriptionData
impl Clone for SubscriptionData
Source§fn clone(&self) -> SubscriptionData
fn clone(&self) -> SubscriptionData
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 SubscriptionData
impl Debug for SubscriptionData
Source§impl<'de> Deserialize<'de> for SubscriptionData
impl<'de> Deserialize<'de> for SubscriptionData
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 Hash for SubscriptionData
impl Hash for SubscriptionData
Source§impl PartialEq for SubscriptionData
impl PartialEq for SubscriptionData
Source§impl Serialize for SubscriptionData
impl Serialize for SubscriptionData
impl Eq for SubscriptionData
impl StructuralPartialEq for SubscriptionData
Auto Trait Implementations§
impl Freeze for SubscriptionData
impl RefUnwindSafe for SubscriptionData
impl Send for SubscriptionData
impl Sync for SubscriptionData
impl Unpin for SubscriptionData
impl UnwindSafe for SubscriptionData
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