#[non_exhaustive]pub struct DeviceTopicUpdateRequest {
pub device_id: String,
pub op: String,
pub topics: Vec<String>,
pub user: String,
}Expand description
DeviceTopicUpdateRequest changes the topics of a device. The device topic list is what decides who gets a push sent to a topic. Centrifugo PRO only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device_id: StringThe ID of the device. Required.
op: StringThe operation. Required. One of: add, remove, set.
topics: Vec<String>The topics for the operation.
user: StringAn optional ownership guard: the update is applied only if the device currently belongs to this user. Otherwise the call fails with a conflict error (or not found if there is no such device).
Implementations§
Source§impl DeviceTopicUpdateRequest
impl DeviceTopicUpdateRequest
Trait Implementations§
Source§impl Clone for DeviceTopicUpdateRequest
impl Clone for DeviceTopicUpdateRequest
Source§impl Debug for DeviceTopicUpdateRequest
impl Debug for DeviceTopicUpdateRequest
Source§impl<'de> Deserialize<'de> for DeviceTopicUpdateRequest
impl<'de> Deserialize<'de> for DeviceTopicUpdateRequest
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 Request for DeviceTopicUpdateRequest
impl Request for DeviceTopicUpdateRequest
Auto Trait Implementations§
impl Freeze for DeviceTopicUpdateRequest
impl RefUnwindSafe for DeviceTopicUpdateRequest
impl Send for DeviceTopicUpdateRequest
impl Sync for DeviceTopicUpdateRequest
impl Unpin for DeviceTopicUpdateRequest
impl UnsafeUnpin for DeviceTopicUpdateRequest
impl UnwindSafe for DeviceTopicUpdateRequest
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