pub struct QueryModuleSourceOpts<'a> {
pub allow_not_exists: Option<bool>,
pub disable_find_up: Option<bool>,
pub ref_pin: Option<&'a str>,
pub require_kind: Option<ModuleSourceKind>,
pub version: Option<&'a str>,
}Fields§
§allow_not_exists: Option<bool>If true, do not error out if the provided ref string is a local path and does not exist yet. Useful when initializing new modules in directories that don’t exist yet.
disable_find_up: Option<bool>If true, do not attempt to find a module config file in a parent directory of the provided path. Only relevant for local module sources.
ref_pin: Option<&'a str>The pinned version of the module source
require_kind: Option<ModuleSourceKind>If set, error out if the ref string is not of the provided requireKind.
version: Option<&'a str>Version query for a Git module source.
Trait Implementations§
Source§impl<'a> Debug for QueryModuleSourceOpts<'a>
impl<'a> Debug for QueryModuleSourceOpts<'a>
Source§impl<'a> PartialEq for QueryModuleSourceOpts<'a>
impl<'a> PartialEq for QueryModuleSourceOpts<'a>
impl<'a> StructuralPartialEq for QueryModuleSourceOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for QueryModuleSourceOpts<'a>
impl<'a> RefUnwindSafe for QueryModuleSourceOpts<'a>
impl<'a> Send for QueryModuleSourceOpts<'a>
impl<'a> Sync for QueryModuleSourceOpts<'a>
impl<'a> Unpin for QueryModuleSourceOpts<'a>
impl<'a> UnsafeUnpin for QueryModuleSourceOpts<'a>
impl<'a> UnwindSafe for QueryModuleSourceOpts<'a>
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> 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