pub struct RunCommandPacket {
pub command_list: String,
}Expand description
This packet is a list of available commands.
https://invent.kde.org/network/kdeconnect-meta/blob/master/protocol.md#kdeconnectruncommand
Fields§
§command_list: StringA JSON-serialized dictionary of commands that the device offers. The key is sent in a
kdeconnect.runcommand.request packet to execute its corresponding command. Each value has
a name field and a command field, e.g
{ "command-id1": { "name": "Command", "command": "/path/to/command1" } }.
Trait Implementations§
Source§impl Clone for RunCommandPacket
impl Clone for RunCommandPacket
Source§fn clone(&self) -> RunCommandPacket
fn clone(&self) -> RunCommandPacket
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 RunCommandPacket
impl Debug for RunCommandPacket
Source§impl<'de> Deserialize<'de> for RunCommandPacket
impl<'de> Deserialize<'de> for RunCommandPacket
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 RunCommandPacket
impl RefUnwindSafe for RunCommandPacket
impl Send for RunCommandPacket
impl Sync for RunCommandPacket
impl Unpin for RunCommandPacket
impl UnsafeUnpin for RunCommandPacket
impl UnwindSafe for RunCommandPacket
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