pub struct ParameterDescriptor {
pub name: String,
pub label: Option<String>,
pub type: Option<String>,
pub default_value: Option<String>,
}
Expand description
A descriptor for a block parameter.
Fields§
§name: String
The machine-readable name of this parameter.
label: Option<String>
A human-readable label, if any, for this parameter.
type: Option<String>
The data type, if known, of this parameter.
default_value: Option<String>
A default value, if any, for this parameter.
Trait Implementations§
Source§impl Clone for ParameterDescriptor
impl Clone for ParameterDescriptor
Source§fn clone(&self) -> ParameterDescriptor
fn clone(&self) -> ParameterDescriptor
Returns a copy 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 ParameterDescriptor
impl Debug for ParameterDescriptor
Source§impl Default for ParameterDescriptor
impl Default for ParameterDescriptor
Source§fn default() -> ParameterDescriptor
fn default() -> ParameterDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParameterDescriptor
impl<'de> Deserialize<'de> for ParameterDescriptor
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 ParameterDescriptor
impl Hash for ParameterDescriptor
Source§impl MaybeLabeled for ParameterDescriptor
impl MaybeLabeled for ParameterDescriptor
Source§impl Named for ParameterDescriptor
impl Named for ParameterDescriptor
Source§impl Ord for ParameterDescriptor
impl Ord for ParameterDescriptor
Source§fn cmp(&self, other: &ParameterDescriptor) -> Ordering
fn cmp(&self, other: &ParameterDescriptor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParameterDescriptor
impl PartialEq for ParameterDescriptor
Source§impl PartialOrd for ParameterDescriptor
impl PartialOrd for ParameterDescriptor
Source§impl Serialize for ParameterDescriptor
impl Serialize for ParameterDescriptor
impl Eq for ParameterDescriptor
impl StructuralPartialEq for ParameterDescriptor
Auto Trait Implementations§
impl Freeze for ParameterDescriptor
impl RefUnwindSafe for ParameterDescriptor
impl Send for ParameterDescriptor
impl Sync for ParameterDescriptor
impl Unpin for ParameterDescriptor
impl UnwindSafe for ParameterDescriptor
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