pub enum ConfigInteractivity {
Interactive,
NonInteractive,
}
Expand description
The interactivity of a configuration
This enum is used by Config
and DeviceConfig
to define whether missing items are
prompted for interactively (ConfigInteractivity::Interactive
) or not
(ConfigInteractivity::NonInteractive
).
Variants§
Interactive
The configuration may spawn interactive prompts to request more data (e.g. usernames or passphrases)
NonInteractive
The configuration will return an Error
if interactive prompts need to be spawned to
request more data (e.g. usernames or passphrases)
Trait Implementations§
Source§impl Clone for ConfigInteractivity
impl Clone for ConfigInteractivity
Source§fn clone(&self) -> ConfigInteractivity
fn clone(&self) -> ConfigInteractivity
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 ConfigInteractivity
impl Debug for ConfigInteractivity
Source§impl Default for ConfigInteractivity
impl Default for ConfigInteractivity
Source§fn default() -> ConfigInteractivity
fn default() -> ConfigInteractivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigInteractivity
impl<'de> Deserialize<'de> for ConfigInteractivity
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
Source§impl PartialEq for ConfigInteractivity
impl PartialEq for ConfigInteractivity
Source§impl Serialize for ConfigInteractivity
impl Serialize for ConfigInteractivity
impl Copy for ConfigInteractivity
impl Eq for ConfigInteractivity
impl StructuralPartialEq for ConfigInteractivity
Auto Trait Implementations§
impl Freeze for ConfigInteractivity
impl RefUnwindSafe for ConfigInteractivity
impl Send for ConfigInteractivity
impl Sync for ConfigInteractivity
impl Unpin for ConfigInteractivity
impl UnwindSafe for ConfigInteractivity
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.