pub struct Opts {
pub idea: Option<String>,
pub repo: PathBuf,
pub config: Option<PathBuf>,
pub agent: Option<String>,
pub priority: i32,
pub yes: bool,
pub from: Option<String>,
}Expand description
What magi plan was asked to do.
Fields§
§idea: Option<String>The rough starting idea, if the operator gave one on the command line. Absent is normal: the interview can start from nothing.
repo: PathBufRepository the task will be competed in.
config: Option<PathBuf>Explicit config file, as --config.
agent: Option<String>Roster agent id to interview with. None picks one per the policy in
pick.
priority: i32Priority for the filed task.
yes: boolFile the draft without the confirmation prompt.
from: Option<String>A browser-interview chat id (or unambiguous prefix/suffix) to
continue here. Its whole transcript and repository are folded into
this interview’s opening briefing as background - see
chat::derived_background. magi chat, the CLI-side counterpart
that could name a terminal interview as from, does not exist yet
(issue #21), so only a browser chat can be named.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnsafeUnpin for Opts
impl UnwindSafe for Opts
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more