pub enum ObjectiveSource {
UserSupplied,
Drafted,
Fallback,
}Expand description
Where the objective paragraph came from — build_handoff’s dev/05
contract: user text always wins when given; otherwise, drafting is
attempted only when draft_objective is on AND a summarizer is injected,
and any failure (no summarizer, an Err, or a blank result) falls back to
the plain banner with no objective line at all.
Variants§
UserSupplied
--objective "<text>" was given verbatim (trimmed).
Drafted
Drafted via the injected SpanSummarizer (TR-7 plumbing reuse).
Fallback
No objective at all: --draft-objective off (the default), no
summarizer injected, or the side-call errored/returned blank.
Trait Implementations§
Source§impl Clone for ObjectiveSource
impl Clone for ObjectiveSource
Source§fn clone(&self) -> ObjectiveSource
fn clone(&self) -> ObjectiveSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectiveSource
Source§impl Debug for ObjectiveSource
impl Debug for ObjectiveSource
impl Eq for ObjectiveSource
Source§impl PartialEq for ObjectiveSource
impl PartialEq for ObjectiveSource
impl StructuralPartialEq for ObjectiveSource
Auto Trait Implementations§
impl Freeze for ObjectiveSource
impl RefUnwindSafe for ObjectiveSource
impl Send for ObjectiveSource
impl Sync for ObjectiveSource
impl Unpin for ObjectiveSource
impl UnsafeUnpin for ObjectiveSource
impl UnwindSafe for ObjectiveSource
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