pub struct AddProgramOptions {
pub module_dir: PathBuf,
pub program_name: String,
pub required_features: Vec<String>,
pub template_path: PathBuf,
}Available on crate feature
module only.Fields§
§module_dir: PathBuf§program_name: String§required_features: Vec<String>Defaults to a sibling [[bin]]’s required-features, else ["cli"].
template_path: PathBufA local directory containing the template’s
.template/program.rs.liquid (e.g. an asimov-template-module
checkout). Never a git URL — callers that only have one (like
super::new_module) are responsible for resolving it to a local
checkout first.
Implementations§
Trait Implementations§
Source§impl Clone for AddProgramOptions
impl Clone for AddProgramOptions
Source§fn clone(&self) -> AddProgramOptions
fn clone(&self) -> AddProgramOptions
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 moreAuto Trait Implementations§
impl Freeze for AddProgramOptions
impl RefUnwindSafe for AddProgramOptions
impl Send for AddProgramOptions
impl Sync for AddProgramOptions
impl Unpin for AddProgramOptions
impl UnsafeUnpin for AddProgramOptions
impl UnwindSafe for AddProgramOptions
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
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