pub struct PubsubMessage {
pub message_id: Option<String>,
pub publish_time: Option<Timestamp>,
pub attributes: BTreeMap<String, String>,
pub data: String,
}Fields§
§message_id: Option<String>The server-assigned ID of each published message. Guaranteed to be unique within the topic. It must not be populated by the publisher in a publish call.
publish_time: Option<Timestamp>The time at which the message was published, populated by the server. It must not be populated by the publisher in a publish call.
attributes: BTreeMap<String, String>Optional. Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.
data: StringA padded, base64-encoded string of bytes, encoded with a URL and filename safe alphabet (sometimes referred to as “web-safe” or “base64url”). Defined by RFC4648.
Trait Implementations§
Source§impl Clone for PubsubMessage
impl Clone for PubsubMessage
Source§fn clone(&self) -> PubsubMessage
fn clone(&self) -> PubsubMessage
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 PubsubMessage
impl Debug for PubsubMessage
Source§impl<'de> Deserialize<'de> for PubsubMessage
impl<'de> Deserialize<'de> for PubsubMessage
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 PubsubMessage
impl RefUnwindSafe for PubsubMessage
impl Send for PubsubMessage
impl Sync for PubsubMessage
impl Unpin for PubsubMessage
impl UnwindSafe for PubsubMessage
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