#[non_exhaustive]pub enum PromptType {
Question,
Secret,
}Expand description
Prompt types the client is required to display.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Question
prompt is a question. The information can be shown as it is entered.
Secret
prompt is for secret information. The entered information should be obscured so it can’t be publically visible.
Trait Implementations§
Source§impl Clone for PromptType
impl Clone for PromptType
Source§fn clone(&self) -> PromptType
fn clone(&self) -> PromptType
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 PromptType
impl Debug for PromptType
Source§impl From<PromptType> for Value
impl From<PromptType> for Value
Source§fn from(v: PromptType) -> Self
fn from(v: PromptType) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for PromptType
impl<'a> FromValue<'a> for PromptType
Source§type Checker = GenericValueTypeChecker<PromptType>
type Checker = GenericValueTypeChecker<PromptType>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for PromptType
impl HasParamSpec for PromptType
type ParamSpec = ParamSpecEnum
Source§type SetValue = PromptType
type SetValue = PromptType
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, PromptType) -> ParamSpecEnumBuilder<'_, PromptType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for PromptType
impl Hash for PromptType
Source§impl Ord for PromptType
impl Ord for PromptType
Source§fn cmp(&self, other: &PromptType) -> Ordering
fn cmp(&self, other: &PromptType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PromptType
impl PartialEq for PromptType
Source§impl PartialOrd for PromptType
impl PartialOrd for PromptType
Source§impl StaticType for PromptType
impl StaticType for PromptType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for PromptType
impl ToValue for PromptType
Source§impl ValueType for PromptType
impl ValueType for PromptType
Source§type Type = PromptType
type Type = PromptType
Type to get the
Type from. Read moreimpl Copy for PromptType
impl Eq for PromptType
impl StructuralPartialEq for PromptType
Auto Trait Implementations§
impl Freeze for PromptType
impl RefUnwindSafe for PromptType
impl Send for PromptType
impl Sync for PromptType
impl Unpin for PromptType
impl UnsafeUnpin for PromptType
impl UnwindSafe for PromptType
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<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.