pub struct PublishItemFormats {
pub http_response: Option<Box<HttpResponseFormat>>,
pub http_stream: Option<Box<HttpStreamFormat>>,
pub ws_message: Option<Box<WsMessageFormat>>,
}
Expand description
PublishItemFormats : Transport-specific message payload representations to be used for delivery. At least one format (http-response
, http-stream
, and/or ws-message
) must be specified. Messages are only delivered to subscribers interested in the provided formats. For example, the ws-message
format will only be sent to WebSocket clients.
Fields§
§http_response: Option<Box<HttpResponseFormat>>
§http_stream: Option<Box<HttpStreamFormat>>
§ws_message: Option<Box<WsMessageFormat>>
Implementations§
Source§impl PublishItemFormats
impl PublishItemFormats
Sourcepub fn new() -> PublishItemFormats
pub fn new() -> PublishItemFormats
Transport-specific message payload representations to be used for delivery. At least one format (http-response
, http-stream
, and/or ws-message
) must be specified. Messages are only delivered to subscribers interested in the provided formats. For example, the ws-message
format will only be sent to WebSocket clients.
Trait Implementations§
Source§impl Clone for PublishItemFormats
impl Clone for PublishItemFormats
Source§fn clone(&self) -> PublishItemFormats
fn clone(&self) -> PublishItemFormats
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 PublishItemFormats
impl Debug for PublishItemFormats
Source§impl Default for PublishItemFormats
impl Default for PublishItemFormats
Source§fn default() -> PublishItemFormats
fn default() -> PublishItemFormats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublishItemFormats
impl<'de> Deserialize<'de> for PublishItemFormats
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 PublishItemFormats
impl PartialEq for PublishItemFormats
Source§impl Serialize for PublishItemFormats
impl Serialize for PublishItemFormats
impl StructuralPartialEq for PublishItemFormats
Auto Trait Implementations§
impl Freeze for PublishItemFormats
impl RefUnwindSafe for PublishItemFormats
impl Send for PublishItemFormats
impl Sync for PublishItemFormats
impl Unpin for PublishItemFormats
impl UnwindSafe for PublishItemFormats
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