pub struct SetupPrompt {
pub key: String,
pub question: String,
pub default: Option<String>,
pub required: bool,
pub secret: bool,
}Expand description
A setup prompt for the init wizard.
Plugins return a list of these to tell pulse-null what configuration values they need during first-time setup.
Fields§
§key: StringConfig key (e.g. “twilio_account_sid”)
question: StringHuman-readable question (e.g. “Twilio Account SID:”)
default: Option<String>Default value if the user presses enter
required: boolWhether a value is required
secret: boolWhether the value is sensitive (mask input)
Trait Implementations§
Source§impl Clone for SetupPrompt
impl Clone for SetupPrompt
Source§impl Debug for SetupPrompt
impl Debug for SetupPrompt
Source§impl<'de> Deserialize<'de> for SetupPrompt
impl<'de> Deserialize<'de> for SetupPrompt
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
Auto Trait Implementations§
impl Freeze for SetupPrompt
impl RefUnwindSafe for SetupPrompt
impl Send for SetupPrompt
impl Sync for SetupPrompt
impl Unpin for SetupPrompt
impl UnsafeUnpin for SetupPrompt
impl UnwindSafe for SetupPrompt
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