pub struct ConfigurableFieldSingleOption {
pub id: String,
pub options: HashMap<String, Value>,
pub default: String,
pub name: Option<String>,
pub description: Option<String>,
pub is_shared: bool,
}Expand description
Field that can be configured by the user with a single option from a set.
This corresponds to Python’s ConfigurableFieldSingleOption NamedTuple.
Fields§
§id: StringThe unique identifier of the field
options: HashMap<String, Value>The available options for the field
default: StringThe default option key
name: Option<String>The name of the field
description: Option<String>The description of the field
Whether the field is shared across runnables
Implementations§
Trait Implementations§
Source§impl Clone for ConfigurableFieldSingleOption
impl Clone for ConfigurableFieldSingleOption
Source§fn clone(&self) -> ConfigurableFieldSingleOption
fn clone(&self) -> ConfigurableFieldSingleOption
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<'de> Deserialize<'de> for ConfigurableFieldSingleOption
impl<'de> Deserialize<'de> for ConfigurableFieldSingleOption
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
Source§impl Hash for ConfigurableFieldSingleOption
impl Hash for ConfigurableFieldSingleOption
Source§impl PartialEq for ConfigurableFieldSingleOption
impl PartialEq for ConfigurableFieldSingleOption
Source§fn eq(&self, other: &ConfigurableFieldSingleOption) -> bool
fn eq(&self, other: &ConfigurableFieldSingleOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfigurableFieldSingleOption
impl StructuralPartialEq for ConfigurableFieldSingleOption
Auto Trait Implementations§
impl Freeze for ConfigurableFieldSingleOption
impl RefUnwindSafe for ConfigurableFieldSingleOption
impl Send for ConfigurableFieldSingleOption
impl Sync for ConfigurableFieldSingleOption
impl Unpin for ConfigurableFieldSingleOption
impl UnwindSafe for ConfigurableFieldSingleOption
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.