pub struct ContainerWithNewFileOpts<'a> {
pub expand: Option<bool>,
pub owner: Option<&'a str>,
pub permissions: Option<isize>,
}Fields§
§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.txt”).
owner: Option<&'a str>A user:group to set for the file. 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.
permissions: Option<isize>Permission given to the written file (e.g., 0600).
Trait Implementations§
Source§impl<'a> Debug for ContainerWithNewFileOpts<'a>
impl<'a> Debug for ContainerWithNewFileOpts<'a>
Source§impl<'a> PartialEq for ContainerWithNewFileOpts<'a>
impl<'a> PartialEq for ContainerWithNewFileOpts<'a>
Source§fn eq(&self, other: &ContainerWithNewFileOpts<'a>) -> bool
fn eq(&self, other: &ContainerWithNewFileOpts<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ContainerWithNewFileOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContainerWithNewFileOpts<'a>
impl<'a> RefUnwindSafe for ContainerWithNewFileOpts<'a>
impl<'a> Send for ContainerWithNewFileOpts<'a>
impl<'a> Sync for ContainerWithNewFileOpts<'a>
impl<'a> Unpin for ContainerWithNewFileOpts<'a>
impl<'a> UnwindSafe for ContainerWithNewFileOpts<'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