pub struct QueryModuleSourceOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for QueryModuleSourceOpts
.
Implementations§
Source§impl<'a> QueryModuleSourceOptsBuilder<'a>
impl<'a> QueryModuleSourceOptsBuilder<'a>
Sourcepub fn allow_not_exists<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn allow_not_exists<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
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.
Sourcepub fn disable_find_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn disable_find_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, do not attempt to find dagger.json in a parent directory of the provided path. Only relevant for local module sources.
Sourcepub fn ref_pin<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn ref_pin<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
The pinned version of the module source
Sourcepub fn require_kind<VALUE: Into<ModuleSourceKind>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn require_kind<VALUE: Into<ModuleSourceKind>>( &mut self, value: VALUE, ) -> &mut Self
If set, error out if the ref string is not of the provided requireKind.
Sourcepub fn build(
&self,
) -> Result<QueryModuleSourceOpts<'a>, QueryModuleSourceOptsBuilderError>
pub fn build( &self, ) -> Result<QueryModuleSourceOpts<'a>, QueryModuleSourceOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for QueryModuleSourceOptsBuilder<'a>
impl<'a> Clone for QueryModuleSourceOptsBuilder<'a>
Source§fn clone(&self) -> QueryModuleSourceOptsBuilder<'a>
fn clone(&self) -> QueryModuleSourceOptsBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a> Freeze for QueryModuleSourceOptsBuilder<'a>
impl<'a> RefUnwindSafe for QueryModuleSourceOptsBuilder<'a>
impl<'a> Send for QueryModuleSourceOptsBuilder<'a>
impl<'a> Sync for QueryModuleSourceOptsBuilder<'a>
impl<'a> Unpin for QueryModuleSourceOptsBuilder<'a>
impl<'a> UnwindSafe for QueryModuleSourceOptsBuilder<'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