pub struct UserConfigOption {
pub type_: ConfigOptionType,
pub title: String,
pub description: String,
pub required: bool,
pub default: Option<Value>,
pub sensitive: bool,
pub min: Option<f64>,
pub max: Option<f64>,
}Expand description
One user-configurable option declared by a plugin.
Fields§
§type_: ConfigOptionType§title: String§description: String§required: bool§default: Option<Value>§sensitive: bool§min: Option<f64>§max: Option<f64>Trait Implementations§
Source§impl Clone for UserConfigOption
impl Clone for UserConfigOption
Source§fn clone(&self) -> UserConfigOption
fn clone(&self) -> UserConfigOption
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 UserConfigOption
impl Debug for UserConfigOption
Source§impl<'de> Deserialize<'de> for UserConfigOption
impl<'de> Deserialize<'de> for UserConfigOption
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 UserConfigOption
impl RefUnwindSafe for UserConfigOption
impl Send for UserConfigOption
impl Sync for UserConfigOption
impl Unpin for UserConfigOption
impl UnsafeUnpin for UserConfigOption
impl UnwindSafe for UserConfigOption
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