pub struct Setting {
pub key: String,
pub label: String,
pub secret: bool,
pub help: Option<String>,
pub kind: SettingKind,
pub required: bool,
pub multiple: bool,
pub default: Option<String>,
}Expand description
A value the user fills in on the plugin’s card; passed to tools and servers as an
environment variable named key.
Fields§
§key: String[A-Z][A-Z0-9_]{0,63}.
label: String§secret: bool§help: Option<String>§kind: SettingKind§required: bool§multiple: bool§default: Option<String>Lists are joined with newlines, as hob does.
Trait Implementations§
impl Eq for Setting
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Forget for Setting
impl Freeze for Setting
impl Move for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.