#[non_exhaustive]pub enum DraftSource {
Directory {
path: PathBuf,
},
AutoMemorySweep {
file: PathBuf,
},
CodexMemorySweep {
file: PathBuf,
},
McpSubmit {
workspace: String,
},
RepoHandoff {
file: PathBuf,
},
CliSubmit,
}Expand description
Where a draft came from. Drives provenance + retention policy
(e.g. AutoMemorySweep drafts may be deleted after successful
commit; CliSubmit drafts may be retained for operator review).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Directory
Draft came from a file under the configured drafts_dir.
AutoMemorySweep
Draft came from sweeping Claude’s auto-memory directory.
CodexMemorySweep
Draft came from sweeping Codex’s memory directory.
McpSubmit
Draft was submitted via the mimir_submit_draft MCP tool
(a future addition; not yet wired).
RepoHandoff
Draft came from an opted-in repo-local handoff/status file.
CliSubmit
Draft was submitted via mimir-librarian submit CLI.
Trait Implementations§
Source§impl Clone for DraftSource
impl Clone for DraftSource
Source§fn clone(&self) -> DraftSource
fn clone(&self) -> DraftSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DraftSource
impl Debug for DraftSource
Source§impl PartialEq for DraftSource
impl PartialEq for DraftSource
impl Eq for DraftSource
impl StructuralPartialEq for DraftSource
Auto Trait Implementations§
impl Freeze for DraftSource
impl RefUnwindSafe for DraftSource
impl Send for DraftSource
impl Sync for DraftSource
impl Unpin for DraftSource
impl UnsafeUnpin for DraftSource
impl UnwindSafe for DraftSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.