pub struct QueryModuleSourceOptsBuilder<'a> { /* private fields */ }Expand description
Builder for QueryModuleSourceOpts.
Implementations§
Source§impl<'a> QueryModuleSourceOptsBuilder<'a>
impl<'a> QueryModuleSourceOptsBuilder<'a>
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 rel_host_path<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn rel_host_path<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
The relative path to the module root from the host directory
Sourcepub fn stable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stable<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, enforce that the source is a stable version for source kinds that support versioning.
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 copy 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