pub struct FormatRequest {
pub executable: OsString,
pub files: Vec<PathBuf>,
pub mode: FormatMode,
}Expand description
Input for run_formatter.
Callers translate CLI flags into this typed shape and hand it to the runner; the runner is responsible for spawning the formatter and translating its exit status into a typed outcome.
Fields§
§executable: OsStringAbsolute path or bare command name of the formatter
executable. Typically the value
resolve_formatter_executable returns.
files: Vec<PathBuf>Absolute paths to the files the formatter should
process. An empty files list is a valid no-op: the
runner returns a report with zero files processed and
does not spawn a subprocess.
mode: FormatModeOperation mode.
Trait Implementations§
Source§impl Clone for FormatRequest
impl Clone for FormatRequest
Source§fn clone(&self) -> FormatRequest
fn clone(&self) -> FormatRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for FormatRequest
impl RefUnwindSafe for FormatRequest
impl Send for FormatRequest
impl Sync for FormatRequest
impl Unpin for FormatRequest
impl UnsafeUnpin for FormatRequest
impl UnwindSafe for FormatRequest
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