pub struct PluginSetting {
pub key: String,
pub label: String,
pub help: Option<String>,
pub secret: bool,
pub required: bool,
pub set: bool,
}Expand description
A value a plugin asks the user for (an API key, a folder). The value itself never reaches clients.
Fields§
§key: StringThe environment variable it becomes, e.g. WEATHER_API_KEY.
label: String§help: Option<String>§secret: boolKept in secrets.json; show a password field.
required: bool§set: boolIt has a value (the user’s or a default).
Trait Implementations§
Source§impl Clone for PluginSetting
impl Clone for PluginSetting
Source§impl Debug for PluginSetting
impl Debug for PluginSetting
Source§impl<'de> Deserialize<'de> for PluginSetting
impl<'de> Deserialize<'de> for PluginSetting
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
impl Eq for PluginSetting
Source§impl PartialEq for PluginSetting
impl PartialEq for PluginSetting
Source§impl Serialize for PluginSetting
impl Serialize for PluginSetting
impl StructuralPartialEq for PluginSetting
Auto Trait Implementations§
impl Forget for PluginSetting
impl Freeze for PluginSetting
impl Move for PluginSetting
impl RefUnwindSafe for PluginSetting
impl Send for PluginSetting
impl Sync for PluginSetting
impl Unpin for PluginSetting
impl UnsafeUnpin for PluginSetting
impl UnwindSafe for PluginSetting
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