pub struct ExampleInput {
pub name: String,
pub description: Option<String>,
pub input: ValueRef,
}Expand description
An example input for a workflow that can be used in UI dropdowns.
Fields§
§name: StringName of the example input for display purposes.
description: Option<String>Optional description of what this example demonstrates.
input: ValueRefThe input data for this example.
Trait Implementations§
Source§impl Clone for ExampleInput
impl Clone for ExampleInput
Source§fn clone(&self) -> ExampleInput
fn clone(&self) -> ExampleInput
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 ExampleInput
impl Debug for ExampleInput
Source§impl<'de> Deserialize<'de> for ExampleInput
impl<'de> Deserialize<'de> for ExampleInput
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 From<&TestCase> for ExampleInput
impl From<&TestCase> for ExampleInput
Source§impl JsonSchema for ExampleInput
impl JsonSchema for ExampleInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ExampleInput
impl PartialEq for ExampleInput
Source§impl Serialize for ExampleInput
impl Serialize for ExampleInput
impl StructuralPartialEq for ExampleInput
Auto Trait Implementations§
impl Freeze for ExampleInput
impl RefUnwindSafe for ExampleInput
impl Send for ExampleInput
impl Sync for ExampleInput
impl Unpin for ExampleInput
impl UnsafeUnpin for ExampleInput
impl UnwindSafe for ExampleInput
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