pub struct ValidationContext {
pub input_files: Vec<String>,
pub output_file: Option<String>,
pub language_code: Option<String>,
pub input_format: Option<String>,
pub output_format: Option<String>,
}Expand description
Validation context for different command types
Fields§
§input_files: Vec<String>§output_file: Option<String>§language_code: Option<String>§input_format: Option<String>§output_format: Option<String>Implementations§
Source§impl ValidationContext
impl ValidationContext
pub fn new() -> Self
pub fn with_input_file(self, file: String) -> Self
pub fn with_output_file(self, file: String) -> Self
pub fn with_language_code(self, lang: String) -> Self
pub fn with_input_format(self, format: String) -> Self
pub fn with_output_format(self, format: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationContext
impl RefUnwindSafe for ValidationContext
impl Send for ValidationContext
impl Sync for ValidationContext
impl Unpin for ValidationContext
impl UnwindSafe for ValidationContext
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
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