pub enum VersionMode {
NotRequested,
Plain,
Json,
}Expand description
How the binary was invoked with respect to the --version contract.
Variants§
NotRequested
Caller passed neither --version nor --version --json.
Plain
--version alone: emit a single line.
Json
--version --json (in any order): emit the JSON form.
Implementations§
Trait Implementations§
Source§impl Clone for VersionMode
impl Clone for VersionMode
Source§fn clone(&self) -> VersionMode
fn clone(&self) -> VersionMode
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 moreSource§impl Debug for VersionMode
impl Debug for VersionMode
Source§impl PartialEq for VersionMode
impl PartialEq for VersionMode
Source§fn eq(&self, other: &VersionMode) -> bool
fn eq(&self, other: &VersionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VersionMode
impl Eq for VersionMode
impl StructuralPartialEq for VersionMode
Auto Trait Implementations§
impl Freeze for VersionMode
impl RefUnwindSafe for VersionMode
impl Send for VersionMode
impl Sync for VersionMode
impl Unpin for VersionMode
impl UnsafeUnpin for VersionMode
impl UnwindSafe for VersionMode
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