pub struct HostDirectoryOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for HostDirectoryOpts
.
Implementations§
Source§impl<'a> HostDirectoryOptsBuilder<'a>
impl<'a> HostDirectoryOptsBuilder<'a>
Sourcepub fn exclude<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
pub fn exclude<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
Exclude artifacts that match the given pattern (e.g., [“node_modules/”, “.git*”]).
Sourcepub fn include<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
pub fn include<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
Include only artifacts that match the given pattern (e.g., [“app/”, “package.*”]).
Sourcepub fn no_cache<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn no_cache<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, the directory will always be reloaded from the host.
Sourcepub fn no_git_auto_ignore<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn no_git_auto_ignore<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Don’t apply .gitignore filter rules inside the directory
Sourcepub fn build(
&self,
) -> Result<HostDirectoryOpts<'a>, HostDirectoryOptsBuilderError>
pub fn build( &self, ) -> Result<HostDirectoryOpts<'a>, HostDirectoryOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for HostDirectoryOptsBuilder<'a>
impl<'a> Clone for HostDirectoryOptsBuilder<'a>
Source§fn clone(&self) -> HostDirectoryOptsBuilder<'a>
fn clone(&self) -> HostDirectoryOptsBuilder<'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 HostDirectoryOptsBuilder<'a>
impl<'a> RefUnwindSafe for HostDirectoryOptsBuilder<'a>
impl<'a> Send for HostDirectoryOptsBuilder<'a>
impl<'a> Sync for HostDirectoryOptsBuilder<'a>
impl<'a> Unpin for HostDirectoryOptsBuilder<'a>
impl<'a> UnwindSafe for HostDirectoryOptsBuilder<'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