pub struct UiNodeInputAttributesOption {
pub value: Option<Value>,
}Expand description
UiNodeInputAttributesOption : Represents a single selectable value for an input whose JSON schema defined an enum. The value is always a scalar JSON type (string, number, or boolean) serialized verbatim from the schema. When present, clients should render the parent input as a select/dropdown.
Fields§
§value: Option<Value>The value that will be submitted when this option is picked. It is serialized verbatim from the JSON schema enum entry, so it is always a scalar JSON value (string, number, or boolean).
Implementations§
Source§impl UiNodeInputAttributesOption
impl UiNodeInputAttributesOption
Sourcepub fn new(value: Option<Value>) -> UiNodeInputAttributesOption
pub fn new(value: Option<Value>) -> UiNodeInputAttributesOption
Represents a single selectable value for an input whose JSON schema defined an enum. The value is always a scalar JSON type (string, number, or boolean) serialized verbatim from the schema. When present, clients should render the parent input as a select/dropdown.
Trait Implementations§
Source§impl Clone for UiNodeInputAttributesOption
impl Clone for UiNodeInputAttributesOption
Source§fn clone(&self) -> UiNodeInputAttributesOption
fn clone(&self) -> UiNodeInputAttributesOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UiNodeInputAttributesOption
impl Debug for UiNodeInputAttributesOption
Source§impl Default for UiNodeInputAttributesOption
impl Default for UiNodeInputAttributesOption
Source§fn default() -> UiNodeInputAttributesOption
fn default() -> UiNodeInputAttributesOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UiNodeInputAttributesOption
impl<'de> Deserialize<'de> for UiNodeInputAttributesOption
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 UiNodeInputAttributesOption
impl PartialEq for UiNodeInputAttributesOption
Source§fn eq(&self, other: &UiNodeInputAttributesOption) -> bool
fn eq(&self, other: &UiNodeInputAttributesOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UiNodeInputAttributesOption
Auto Trait Implementations§
impl Freeze for UiNodeInputAttributesOption
impl RefUnwindSafe for UiNodeInputAttributesOption
impl Send for UiNodeInputAttributesOption
impl Sync for UiNodeInputAttributesOption
impl Unpin for UiNodeInputAttributesOption
impl UnsafeUnpin for UiNodeInputAttributesOption
impl UnwindSafe for UiNodeInputAttributesOption
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