pub enum ValidSaveAsParse {
OutDir(String),
Title(String),
Name(String),
NameIsPrefix(bool),
}Variants§
Trait Implementations§
Source§impl Clone for ValidSaveAsParse
impl Clone for ValidSaveAsParse
Source§fn clone(&self) -> ValidSaveAsParse
fn clone(&self) -> ValidSaveAsParse
Returns a duplicate 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 ValidSaveAsParse
impl Debug for ValidSaveAsParse
Source§impl ParseFromFlags for ValidSaveAsParse
impl ParseFromFlags for ValidSaveAsParse
Source§type Config = ValidSaveAsConfig
type Config = ValidSaveAsConfig
Typ konfiguracji, który zostanie zwrócony
Source§fn parse(s: &str) -> Result<Self, String>
fn parse(s: &str) -> Result<Self, String>
Parsuje pojedynczego stringa (flagę CLI) na wariant Enuma.
Zwraca Result, aby umożliwić obsługę lub zignorowanie nieznanych flag.
Source§fn parse_vec_as_config<I>(inputs: I) -> Self::Config
fn parse_vec_as_config<I>(inputs: I) -> Self::Config
Przetwarza wektor stringów (flag) na zwalidowaną strukturę konfiguracyjną
Source§impl PartialEq for ValidSaveAsParse
impl PartialEq for ValidSaveAsParse
impl Eq for ValidSaveAsParse
impl StructuralPartialEq for ValidSaveAsParse
Auto Trait Implementations§
impl Freeze for ValidSaveAsParse
impl RefUnwindSafe for ValidSaveAsParse
impl Send for ValidSaveAsParse
impl Sync for ValidSaveAsParse
impl Unpin for ValidSaveAsParse
impl UnsafeUnpin for ValidSaveAsParse
impl UnwindSafe for ValidSaveAsParse
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