pub struct PicklsFormatterConfig {
pub program: String,
pub args: Vec<String>,
pub use_stdin: bool,
pub stderr_indicates_error: bool,
}Fields§
§program: StringIf program is not an absolute path, the PATH will be searched in an OS-defined way.
args: Vec<String>Arguments to pass to program. Use “$abspath” wherever the absolute path to the filename should go.
use_stdin: boolWhether to use stdin to push the contents of the file to program or to rely on the usage
of “$filename” arg. Defaults to true.
stderr_indicates_error: boolIf stderr_indicates_error is true, then if the formatter writes anything to stderr, the
format run will be considered a failure and aborted. Defaults to false.
Trait Implementations§
Source§impl Clone for PicklsFormatterConfig
impl Clone for PicklsFormatterConfig
Source§fn clone(&self) -> PicklsFormatterConfig
fn clone(&self) -> PicklsFormatterConfig
Returns a copy 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 moreSource§impl Debug for PicklsFormatterConfig
impl Debug for PicklsFormatterConfig
Source§impl<'de> Deserialize<'de> for PicklsFormatterConfig
impl<'de> Deserialize<'de> for PicklsFormatterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PicklsFormatterConfig
impl RefUnwindSafe for PicklsFormatterConfig
impl Send for PicklsFormatterConfig
impl Sync for PicklsFormatterConfig
impl Unpin for PicklsFormatterConfig
impl UnwindSafe for PicklsFormatterConfig
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