pub struct Properties {
pub persistent: MissingOrNull<bool>,
pub retained: MissingOrNull<bool>,
pub cached: MissingOrNull<bool>,
}
Expand description
Each published topic may also have properties associated to it. Properties are represented in the protocol as JSON and thus property values may be any JSON type. Property keys must be strings. The following properties have a defined meaning in this spec. Servers shall support arbitrary properties being set outside of this set. Clients shall ignore properties they do not recognize. Properties are initially set on publish and may be changed (by any client) using TextMessage::SetProperties
Fields§
§persistent: MissingOrNull<bool>
If true, the last set value will be periodically saved to persistent storage on the server and be restored during server startup. Topics with this property set to true will not be deleted by the server when the last publisher stops publishing.
retained: MissingOrNull<bool>
Topics with this property set to true will not be deleted by the server when the last publisher stops publishing.
cached: MissingOrNull<bool>
If false, the server and clients will not store the value of the topic. This means that only value updates will be available for the topic.
Implementations§
Source§impl Properties
impl Properties
pub fn update(&mut self, other: Properties)
Trait Implementations§
Source§impl Clone for Properties
impl Clone for Properties
Source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more