pub struct TopicInfo {
pub name: String,
pub schema_type: Option<String>,
pub entity: Option<String>,
}Expand description
Metadata for a single outbound topic served by a WebSocket endpoint.
Fields§
§name: StringRecord key / topic name (e.g. "temp.vienna").
schema_type: Option<String>Schema type name (e.g. "temperature"), if known by the server.
entity: Option<String>Entity / node identifier (e.g. "vienna"), extracted server-side from the
topic name. The server is the authority on naming conventions — clients
should use this field directly rather than parsing the topic name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TopicInfo
impl<'de> Deserialize<'de> for TopicInfo
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
impl StructuralPartialEq for TopicInfo
Auto Trait Implementations§
impl Freeze for TopicInfo
impl RefUnwindSafe for TopicInfo
impl Send for TopicInfo
impl Sync for TopicInfo
impl Unpin for TopicInfo
impl UnsafeUnpin for TopicInfo
impl UnwindSafe for TopicInfo
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