pub enum PlanOperation {
NotesCreate {
account: Option<String>,
folder: String,
title: String,
body: String,
},
NotesAppend {
note_id: String,
expected_revision: Option<String>,
text: String,
},
NotesMove {
note_id: String,
expected_revision: Option<String>,
destination_folder: String,
destination_account: Option<String>,
},
NotesMoveFolderContents {
source_folder_id: String,
source_folder_path: String,
destination_folder_path: String,
destination_account: Option<String>,
},
NotesCreateFolder {
account: Option<String>,
name: String,
parent_folder: Option<String>,
},
NotesDeleteEmptyFolder {
folder_id: String,
folder_name: String,
},
MailCreateDraft {
account: Option<String>,
to: Vec<String>,
cc: Vec<String>,
subject: String,
body: String,
signature_name: Option<String>,
reply_to_local_id: Option<String>,
},
MailMarkRead {
local_id: String,
account: String,
mailbox: String,
read: bool,
},
MailMove {
local_id: String,
account: String,
from_mailbox: String,
to_mailbox: String,
},
ShortcutsRun {
name: String,
input: Option<String>,
},
}Variants§
NotesCreate
NotesAppend
NotesMove
Fields
NotesMoveFolderContents
Fields
NotesCreateFolder
NotesDeleteEmptyFolder
MailCreateDraft
Fields
MailMarkRead
MailMove
ShortcutsRun
Implementations§
Source§impl PlanOperation
impl PlanOperation
pub fn risk_level(&self) -> RiskLevel
pub fn reversibility(&self) -> Reversibility
pub fn preview(&self) -> String
pub fn validate_against_profile( &self, profile_name: &str, profile: &ProfileConfig, ) -> Result<(), MacflyError>
Trait Implementations§
Source§impl Clone for PlanOperation
impl Clone for PlanOperation
Source§impl Debug for PlanOperation
impl Debug for PlanOperation
Source§impl<'de> Deserialize<'de> for PlanOperation
impl<'de> Deserialize<'de> for PlanOperation
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 Forget for PlanOperation
impl Freeze for PlanOperation
impl Move for PlanOperation
impl RefUnwindSafe for PlanOperation
impl Send for PlanOperation
impl Sync for PlanOperation
impl Unpin for PlanOperation
impl UnsafeUnpin for PlanOperation
impl UnwindSafe for PlanOperation
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