pub enum Command {
Apply {
folder: String,
uids: Vec<u32>,
action: Action,
by: String,
},
ApplyRule {
name: String,
},
FetchBodies {
folder: Option<String>,
},
FetchBody {
folder: String,
uid: u32,
},
Restore {
file: PathBuf,
},
SearchServer {
folder: Option<String>,
query: String,
},
SyncNow,
}Expand description
Work the daemon asks an account’s sync thread to do on its connection, on a client’s behalf.
Variants§
Apply
by is logged as the action’s rule name.
ApplyRule
FetchBodies
FetchBody
Restore
SearchServer
Searches the server for messages with every word of query, in folder or every synced folder.
SyncNow
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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