@@ -44,13 +44,13 @@ pub type Generation = u32;
44
44
/// u32 value defining the indice of a slot.
45
45
pub type Indice = u32 ;
46
46
47
- #[ derive( Debug , Deserialize , Serialize ) ]
47
+ #[ derive( Debug , Deserialize , Serialize , Clone ) ]
48
48
pub struct ContextOption {
49
49
pub id : Indice ,
50
50
pub name : String ,
51
51
}
52
52
53
- #[ derive( Debug , Deserialize , Serialize ) ]
53
+ #[ derive( Debug , Deserialize , Serialize , Clone ) ]
54
54
pub enum GpuPreference {
55
55
Default ,
56
56
NonDefault ,
@@ -65,7 +65,7 @@ pub enum IconSource {
65
65
}
66
66
67
67
/// Sent from a plugin to the launcher service.
68
- #[ derive( Debug , Deserialize , Serialize ) ]
68
+ #[ derive( Debug , Deserialize , Serialize , Clone ) ]
69
69
pub enum PluginResponse {
70
70
/// Append a new search item to the launcher.
71
71
Append ( PluginSearchResult ) ,
@@ -92,7 +92,7 @@ pub enum PluginResponse {
92
92
}
93
93
94
94
/// Search information from a plugin to be sorted and filtered by the launcher service.
95
- #[ derive( Debug , Default , Deserialize , Serialize ) ]
95
+ #[ derive( Debug , Default , Deserialize , Serialize , Clone ) ]
96
96
pub struct PluginSearchResult {
97
97
/// Numeric identifier tracked by the plugin.
98
98
pub id : Indice ,
@@ -111,7 +111,7 @@ pub struct PluginSearchResult {
111
111
}
112
112
113
113
// Sent to the input pipe of the launcher service, and disseminated to its plugins.
114
- #[ derive( Debug , Deserialize , Serialize ) ]
114
+ #[ derive( Debug , Deserialize , Serialize , Clone ) ]
115
115
pub enum Request {
116
116
/// Activate on the selected item.
117
117
Activate ( Indice ) ,
@@ -132,7 +132,7 @@ pub enum Request {
132
132
}
133
133
134
134
/// Sent from the launcher service to a frontend.
135
- #[ derive( Debug , Deserialize , Serialize ) ]
135
+ #[ derive( Debug , Deserialize , Serialize , Clone ) ]
136
136
pub enum Response {
137
137
// An operation was performed and the frontend may choose to exit its process.
138
138
Close ,
@@ -153,7 +153,7 @@ pub enum Response {
153
153
}
154
154
155
155
/// Serialized response to launcher frontend about a search result.
156
- #[ derive( Debug , Serialize , Deserialize ) ]
156
+ #[ derive( Debug , Serialize , Deserialize , Clone ) ]
157
157
pub struct SearchResult {
158
158
/// Numeric identifier tracked by the plugin.
159
159
pub id : Indice ,
0 commit comments