pub struct ConfigurableFieldSpec {
pub id: String,
pub annotation: String,
pub name: Option<String>,
pub description: Option<String>,
pub default: Option<Value>,
pub is_shared: bool,
pub dependencies: Option<Vec<String>>,
}Expand description
Specification of a configurable field.
This corresponds to Python’s ConfigurableFieldSpec NamedTuple.
Fields§
§id: StringThe unique identifier of the field
annotation: StringThe annotation (type) of the field
name: Option<String>The name of the field
description: Option<String>The description of the field
default: Option<Value>The default value for the field
Whether the field is shared across runnables
dependencies: Option<Vec<String>>Dependencies on other fields
Implementations§
Trait Implementations§
Source§impl Clone for ConfigurableFieldSpec
impl Clone for ConfigurableFieldSpec
Source§fn clone(&self) -> ConfigurableFieldSpec
fn clone(&self) -> ConfigurableFieldSpec
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 ConfigurableFieldSpec
impl Debug for ConfigurableFieldSpec
Source§impl<'de> Deserialize<'de> for ConfigurableFieldSpec
impl<'de> Deserialize<'de> for ConfigurableFieldSpec
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 PartialEq for ConfigurableFieldSpec
impl PartialEq for ConfigurableFieldSpec
Source§impl Serialize for ConfigurableFieldSpec
impl Serialize for ConfigurableFieldSpec
impl Eq for ConfigurableFieldSpec
impl StructuralPartialEq for ConfigurableFieldSpec
Auto Trait Implementations§
impl Freeze for ConfigurableFieldSpec
impl RefUnwindSafe for ConfigurableFieldSpec
impl Send for ConfigurableFieldSpec
impl Sync for ConfigurableFieldSpec
impl Unpin for ConfigurableFieldSpec
impl UnwindSafe for ConfigurableFieldSpec
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.