pub struct ContainerWithDirectoryOpts<'a> {
pub exclude: Option<Vec<&'a str>>,
pub expand: Option<bool>,
pub include: Option<Vec<&'a str>>,
pub owner: Option<&'a str>,
}
Fields§
§exclude: Option<Vec<&'a str>>
Patterns to exclude in the written directory (e.g. [“node_modules/**”, “.gitignore”, “.git/”]).
expand: Option<bool>
Replace “${VAR}” or “$VAR” in the value of path according to the current environment variables defined in the container (e.g. “/$VAR/foo”).
include: Option<Vec<&'a str>>
Patterns to include in the written directory (e.g. [“*.go”, “go.mod”, “go.sum”]).
owner: Option<&'a str>
A user:group to set for the directory and its contents. The user and group can either be an ID (1000:1000) or a name (foo:bar). If the group is omitted, it defaults to the same as the user.
Trait Implementations§
Source§impl<'a> Debug for ContainerWithDirectoryOpts<'a>
impl<'a> Debug for ContainerWithDirectoryOpts<'a>
Source§impl<'a> PartialEq for ContainerWithDirectoryOpts<'a>
impl<'a> PartialEq for ContainerWithDirectoryOpts<'a>
Source§fn eq(&self, other: &ContainerWithDirectoryOpts<'a>) -> bool
fn eq(&self, other: &ContainerWithDirectoryOpts<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> StructuralPartialEq for ContainerWithDirectoryOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContainerWithDirectoryOpts<'a>
impl<'a> RefUnwindSafe for ContainerWithDirectoryOpts<'a>
impl<'a> Send for ContainerWithDirectoryOpts<'a>
impl<'a> Sync for ContainerWithDirectoryOpts<'a>
impl<'a> Unpin for ContainerWithDirectoryOpts<'a>
impl<'a> UnwindSafe for ContainerWithDirectoryOpts<'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