pub struct NotificationRequestPacket {
pub cancel: Option<bool>,
pub request: Option<bool>,
}Expand description
This packet is a request for notifications.
https://invent.kde.org/network/kdeconnect-meta/blob/master/protocol.md#kdeconnectnotificationrequest
Fields§
§cancel: Option<bool>If present, holds the ID of a notification that should be closed.
request: Option<bool>Indicates this is a request for the notifications.
Trait Implementations§
Source§impl Clone for NotificationRequestPacket
impl Clone for NotificationRequestPacket
Source§fn clone(&self) -> NotificationRequestPacket
fn clone(&self) -> NotificationRequestPacket
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 NotificationRequestPacket
impl Debug for NotificationRequestPacket
Source§impl<'de> Deserialize<'de> for NotificationRequestPacket
impl<'de> Deserialize<'de> for NotificationRequestPacket
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 NotificationRequestPacket
impl RefUnwindSafe for NotificationRequestPacket
impl Send for NotificationRequestPacket
impl Sync for NotificationRequestPacket
impl Unpin for NotificationRequestPacket
impl UnsafeUnpin for NotificationRequestPacket
impl UnwindSafe for NotificationRequestPacket
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