Skip to main content

Workspace

Struct Workspace 

Source
pub struct Workspace { /* private fields */ }

Implementations§

Source§

impl Workspace

Source

pub fn create_archive_message_category( &self, name: &str, message_id: Option<&str>, summary: Option<&str>, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_list(&self) -> Result<Value>

Source

pub fn archive_list_cases(&self) -> Result<Value>

Source

pub fn archive_list_messages(&self) -> Result<Value>

Source

pub fn archive_message_show(&self, archive_ref: &str) -> Result<Value>

Source

pub fn archive_message_restore( &self, archive_ref: &str, message_id: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_message_move( &self, archive_ref: &str, message_id: &str, new_archive_ref: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_message_rename( &self, archive_ref: &str, name: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_message_set_summary( &self, archive_ref: &str, message_id: &str, summary: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_message_notes_show(&self, archive_ref: &str) -> Result<Value>

Source

pub fn archive_message_notes_append( &self, archive_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn archive_message_notes_replace( &self, archive_ref: &str, text: &str, ) -> Result<Value>

Source§

impl Workspace

Source

pub fn create_case( &self, name: &str, group: Option<&str>, message_id: Option<&str>, summary: Option<&str>, reason: Option<&str>, ) -> Result<Value>

Source

pub fn add_message_to_case( &self, case_ref: &str, message_id: &str, summary: Option<&str>, reason: Option<&str>, ) -> Result<Value>

Source

pub fn move_case(&self, case_ref: &str, group: &str) -> Result<Value>

Source

pub fn archive_case( &self, case_ref: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn reopen_case(&self, case_ref: &str, reason: Option<&str>) -> Result<Value>

Source

pub fn tag_case( &self, case_ref: &str, tag: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn untag_case( &self, case_ref: &str, tag: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn merge_case( &self, case_ref: &str, other_case_ref: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn rename_active_case( &self, case_ref: &str, name: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn active_case_show(&self, case_ref: &str) -> Result<Value>

Source

pub fn case_list(&self) -> Result<Value>

Source

pub fn active_case_notes_show(&self, case_ref: &str) -> Result<Value>

Source

pub fn active_case_notes_append( &self, case_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn active_case_notes_replace( &self, case_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn archive_case_show(&self, case_ref: &str) -> Result<Value>

Source

pub fn archive_case_restore( &self, case_ref: &str, group: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_case_rename( &self, case_ref: &str, name: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_case_notes_show(&self, case_ref: &str) -> Result<Value>

Source

pub fn archive_case_notes_append( &self, case_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn archive_case_notes_replace( &self, case_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn find_case_required(&self, case_ref: &str) -> Result<PathBuf>

Source

pub fn find_case(&self, case_ref: &str) -> Result<Option<PathBuf>>

Source§

impl Workspace

Source

pub fn contact_create(&self, params: NewContact<'_>) -> Result<Value>

Source

pub fn contact_list( &self, group: Option<&str>, tag: Option<&str>, org: Option<&str>, role: Option<&str>, ) -> Result<Value>

Source

pub fn contact_show(&self, contact_ref: &str) -> Result<Value>

Source

pub fn contact_move(&self, contact_ref: &str, new_group: &str) -> Result<Value>

Source

pub fn contact_rename(&self, contact_ref: &str, new_name: &str) -> Result<Value>

Source

pub fn contact_email_add(&self, contact_ref: &str, email: &str) -> Result<Value>

Source

pub fn contact_email_remove( &self, contact_ref: &str, email: &str, ) -> Result<Value>

Source

pub fn contact_phone_add(&self, contact_ref: &str, phone: &str) -> Result<Value>

Source

pub fn contact_phone_remove( &self, contact_ref: &str, phone: &str, ) -> Result<Value>

Source

pub fn contact_tag(&self, contact_ref: &str, tag: &str) -> Result<Value>

Source

pub fn contact_untag(&self, contact_ref: &str, tag: &str) -> Result<Value>

Source

pub fn contact_notes_show(&self, contact_ref: &str) -> Result<Value>

Source

pub fn contact_notes_append( &self, contact_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn contact_notes_replace( &self, contact_ref: &str, text: &str, ) -> Result<Value>

Source

pub fn contact_archive_contact( &self, contact_ref: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn contact_reopen_contact( &self, contact_ref: &str, group: Option<&str>, reason: Option<&str>, ) -> Result<Value>

Source

pub fn contact_extract( &self, source: ContactExtractSource, group: Option<&str>, ) -> Result<Value>

Source§

impl Workspace

Source

pub fn doctor(&self) -> Result<Value>

Source

pub fn doctor_repair(&self, confirm: bool) -> Result<Value>

Source§

impl Workspace

Source

pub fn show_draft(&self, case_ref: &str, draft_name: &str) -> Result<Value>

Source

pub fn validate_draft(&self, case_ref: &str, draft_name: &str) -> Result<Value>

Source

pub fn attach_file_to_draft( &self, case_ref: &str, draft_name: &str, source_path: &str, ) -> Result<Value>

Source

pub fn remove_draft( &self, case_ref: &str, draft_name: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn save_draft(&self, case_ref: &str, draft_name: &str) -> Result<Value>

Source

pub fn send_draft(&self, case_ref: &str, draft_name: &str) -> Result<Value>

Source

pub fn reply_to_message( &self, case_ref: &str, message_id: &str, reply_all: bool, identity: Option<&str>, body: Option<&str>, body_file: Option<&str>, ) -> Result<Value>

Source

pub fn fetch_message_attachment( &self, message_id: &str, part_id: Option<&str>, ) -> Result<Value>

Source§

impl Workspace

Source

pub fn message_show(&self, message_id: &str) -> Result<Value>

Source

pub fn spam_message( &self, message_id: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn restore_message( &self, message_id: &str, reason: Option<&str>, ) -> Result<Value>

Source

pub fn archive_message( &self, message_id: &str, archive_ref: &str, summary: Option<&str>, reason: Option<&str>, ) -> Result<Value>

Source

pub fn trash_message( &self, message_id: &str, reason: Option<&str>, ) -> Result<Value>

Source§

impl Workspace

Source

pub fn purge_spam(&self, older_than_days: u64) -> Result<Value>

Source

pub fn purge_trash(&self, older_than_days: u64) -> Result<Value>

Source

pub fn purge_deleted(&self, older_than_days: u64) -> Result<Value>

Source

pub fn purge_discards(&self, older_than_days: u64) -> Result<Value>

Source§

impl Workspace

Source

pub fn pull(&self, ids: &[String]) -> Result<Value>

Source

pub fn pull_with_progress( &self, ids: &[String], progress: Option<&mut (dyn FnMut(&str, Value) + '_)>, ) -> Result<Value>

Source§

impl Workspace

Source§

impl Workspace

Source

pub fn triage_list(&self) -> Result<Value>

List untriaged messages by stable locator. Resolve details with path_templates or afmail message show.

Source

pub fn refresh_triage_views(&self) -> Result<Value>

Source§

impl Workspace

Source

pub fn at(path: impl Into<PathBuf>) -> Self

Source

pub fn discover(start: impl AsRef<Path>) -> Result<Self>

Source

pub fn root(&self) -> &Path

Source

pub fn init_command(agent_root: &Path, path: Option<&str>) -> Result<Value>

Source

pub fn init(&self) -> Result<Value>

Source

pub fn status(&self) -> Result<Value>

Source

pub fn config_show(&self) -> Result<Value>

Source

pub fn config_get(&self, key: &str) -> Result<Value>

Source

pub fn config_set(&self, key: &str, values: &[String]) -> Result<Value>

Source

pub fn remote_test(&self) -> Result<Value>

Source

pub fn remote_folders(&self) -> Result<Value>

Source

pub fn push_with_progress( &self, confirmed: bool, progress: Option<&mut (dyn FnMut(&str, Value) + '_)>, ) -> Result<Value>

Source

pub fn push_list(&self) -> Result<Value>

Source

pub fn render_refresh(&self) -> Result<Value>

Source

pub fn render_templates(&self, force: bool) -> Result<Value>

Source

pub fn log_list(&self, limit: usize) -> Result<Value>

Source

pub fn log_tail(&self) -> Result<Value>

Source

pub fn log_message(&self, message_id: &str) -> Result<Value>

Source

pub fn log_case(&self, case_ref: &str) -> Result<Value>

Source

pub fn log_archive(&self, archive_ref: &str) -> Result<Value>

Trait Implementations§

Source§

impl Clone for Workspace

Source§

fn clone(&self) -> Workspace

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Workspace

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V