rsynko_manager/draft.rs
1use ambassador::delegatable_trait;
2
3/// Specifies add-sources draft storage.
4#[delegatable_trait]
5pub trait DraftStateAlg {
6 /// Observes the current editor draft.
7 fn draft(&self) -> &str;
8 /// Replaces the editor draft.
9 fn set_draft(&mut self, draft: String);
10}
11
12/// Specifies input-editor draft storage.
13#[delegatable_trait]
14pub trait InputDraftAlg {
15 /// Observes the input editor draft.
16 fn input_draft(&self) -> &str;
17 /// Replaces the input editor draft.
18 fn set_input_draft(&mut self, draft: String);
19}
20
21/// Specifies output-file-name draft storage.
22#[delegatable_trait]
23pub trait OutputDraftAlg {
24 /// Observes the output-file-name editor draft.
25 fn output_draft(&self) -> &str;
26 /// Replaces the output-file-name editor draft.
27 fn set_output_draft(&mut self, draft: String);
28}