pub struct GenerateFilesOptions {
pub commands: Vec<GenerateFileCommand>,
pub image: Option<String>,
pub injected_files: Vec<TransferedFile>,
pub temp_name: Option<String>,
}
Fields§
§commands: Vec<GenerateFileCommand>
§image: Option<String>
§injected_files: Vec<TransferedFile>
§temp_name: Option<String>
Implementations§
source§impl GenerateFilesOptions
impl GenerateFilesOptions
pub fn new<I>(commands: I, image: Option<String>) -> Selfwhere
I: IntoIterator<Item = GenerateFileCommand>,
pub fn with_files<I>(
commands: I,
image: Option<String>,
injected_files: &[TransferedFile],
) -> Selfwhere
I: IntoIterator<Item = GenerateFileCommand>,
pub fn image<S>(self, image: S) -> Self
pub fn injected_files<I>(self, injected_files: I) -> Selfwhere
I: IntoIterator<Item = TransferedFile>,
pub fn temp_name(self, name: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenerateFilesOptions
impl RefUnwindSafe for GenerateFilesOptions
impl Send for GenerateFilesOptions
impl Sync for GenerateFilesOptions
impl Unpin for GenerateFilesOptions
impl UnwindSafe for GenerateFilesOptions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more