pub struct ServiceBusProtocolMessage {
pub type: String,
pub service_id: Option<String>,
pub instance_id: Option<String>,
pub token: Option<String>,
pub topics: Option<Vec<String>>,
pub event: Option<ServiceBusEventEnvelope>,
pub forward_request: Option<ServiceBusForwardRequest>,
pub forward_response: Option<ServiceBusForwardResponse>,
pub message: Option<String>,
pub error_code: Option<String>,
pub subscriber_count: Option<i32>,
}Expand description
Generic wire frame used by all bus protocol message types.
Fields§
§type: StringFrame type; see protocol_types constants.
service_id: Option<String>Service id used in connect/auth related frames.
instance_id: Option<String>Instance id used in connect/auth related frames.
token: Option<String>Authentication token used during connect.
topics: Option<Vec<String>>Topic list for subscribe/unsubscribe frames.
event: Option<ServiceBusEventEnvelope>Event payload for publish/event frames.
forward_request: Option<ServiceBusForwardRequest>Forward request payload.
forward_response: Option<ServiceBusForwardResponse>Forward response payload.
message: Option<String>Human-readable status or error message.
error_code: Option<String>Structured protocol error code.
subscriber_count: Option<i32>Number of subscribers that received a published event.
Trait Implementations§
Source§impl Clone for ServiceBusProtocolMessage
impl Clone for ServiceBusProtocolMessage
Source§fn clone(&self) -> ServiceBusProtocolMessage
fn clone(&self) -> ServiceBusProtocolMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceBusProtocolMessage
impl Debug for ServiceBusProtocolMessage
Source§impl Default for ServiceBusProtocolMessage
impl Default for ServiceBusProtocolMessage
Source§fn default() -> ServiceBusProtocolMessage
fn default() -> ServiceBusProtocolMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceBusProtocolMessage
impl<'de> Deserialize<'de> for ServiceBusProtocolMessage
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 ServiceBusProtocolMessage
impl RefUnwindSafe for ServiceBusProtocolMessage
impl Send for ServiceBusProtocolMessage
impl Sync for ServiceBusProtocolMessage
impl Unpin for ServiceBusProtocolMessage
impl UnsafeUnpin for ServiceBusProtocolMessage
impl UnwindSafe for ServiceBusProtocolMessage
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