pub struct InputDef {
pub name: String,
pub data_type: DataType,
pub meaning: FieldMeaning,
pub required: bool,
pub description: Option<String>,
}Expand description
An input parameter definition for an action.
Reuses DataType and FieldMeaning from the field module to maintain
a single type vocabulary across the projection schema.
Fields§
§name: String§data_type: DataType§meaning: FieldMeaning§required: bool§description: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputDef
impl<'de> Deserialize<'de> for InputDef
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 JsonSchema for InputDef
impl JsonSchema for InputDef
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 moreimpl Eq for InputDef
impl StructuralPartialEq for InputDef
Auto Trait Implementations§
impl Freeze for InputDef
impl RefUnwindSafe for InputDef
impl Send for InputDef
impl Sync for InputDef
impl Unpin for InputDef
impl UnsafeUnpin for InputDef
impl UnwindSafe for InputDef
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