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>,
}
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 dagger.json 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.
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> 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