pub struct Options {
pub script: ScriptSource,
pub shell: bool,
pub dry_run: bool,
pub endpoints: EndpointFlags,
pub remote_serve: bool,
pub mcp: bool,
pub remotes: Vec<(String, String)>,
pub script_args: Vec<String>,
}Fields§
§script: ScriptSource§shell: bool§dry_run: boolPrint the transitive import closure (file:line CMD, #115) instead
of executing. No handlers run, no processes spawn, no FS writes.
endpoints: EndpointFlags§remote_serve: bool§mcp: boolServe EXPORTed FUNCs as MCP tools over stdio instead of running
linear steps. Requires the mcp feature; see --mcp.
remotes: Vec<(String, String)>Raw --remote <target>="<command>" pairs, in flag order. Validated
and tokenized at inventory build; empty in lean builds (flag bails).
script_args: Vec<String>Verbatim tail after the script position (#226): everything after
the script (or after --script <file>), with one leading --
stripped when present. Never option-parsed, so --dry-run after
the script stays data. Surfaced script-side via STD::ARGV().
Implementations§
Source§impl Options
impl Options
pub fn parse( args: &mut impl Iterator<Item = String>, workspace_root: &GuardedPath, ) -> DiagnosticResult<Self>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Optionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SocketAddr>: Freeze,
PhantomData<(SocketAddr, String)>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Optionswhere
RawVecInner: Send,
impl Sync for Optionswhere
RawVecInner: Sync,
impl Unpin for Options
impl UnsafeUnpin for Optionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SocketAddr>: UnsafeUnpin,
PhantomData<(SocketAddr, String)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Optionswhere
RawVecInner: UnwindSafe,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.