pub enum InputSourceKind {
Arg,
Flag,
Stdin,
Env,
Clipboard,
Editor,
Prompt,
Default,
}Expand description
The kind of source that provided input.
Variants§
Arg
From a CLI argument.
Flag
From a CLI flag.
Stdin
From piped stdin.
Env
From an environment variable.
Clipboard
From the system clipboard.
Editor
From an external editor.
Prompt
From an interactive prompt.
Default
From a default value.
Trait Implementations§
Source§impl Clone for InputSourceKind
impl Clone for InputSourceKind
Source§fn clone(&self) -> InputSourceKind
fn clone(&self) -> InputSourceKind
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 InputSourceKind
impl Debug for InputSourceKind
Source§impl Display for InputSourceKind
impl Display for InputSourceKind
Source§impl PartialEq for InputSourceKind
impl PartialEq for InputSourceKind
impl Copy for InputSourceKind
impl Eq for InputSourceKind
impl StructuralPartialEq for InputSourceKind
Auto Trait Implementations§
impl Freeze for InputSourceKind
impl RefUnwindSafe for InputSourceKind
impl Send for InputSourceKind
impl Sync for InputSourceKind
impl Unpin for InputSourceKind
impl UnsafeUnpin for InputSourceKind
impl UnwindSafe for InputSourceKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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