pub struct OutputFieldSpec {
pub field_type: Option<OutputType>,
pub description: Option<String>,
pub required: Option<bool>,
pub wrap_as: Option<NonEmptyString>,
pub enum_values: Option<Vec<String>>,
}Expand description
The expanded form of an output field declaration. Committed with
additionalProperties: false and minProperties: 1 (the latter is a
numeric bound the emitter does not express).
Fields§
§field_type: Option<OutputType>§description: Option<String>§required: Option<bool>§wrap_as: Option<NonEmptyString>§enum_values: Option<Vec<String>>Trait Implementations§
Source§impl Clone for OutputFieldSpec
impl Clone for OutputFieldSpec
Source§fn clone(&self) -> OutputFieldSpec
fn clone(&self) -> OutputFieldSpec
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 OutputFieldSpec
impl Debug for OutputFieldSpec
Source§impl<'de> Deserialize<'de> for OutputFieldSpec
impl<'de> Deserialize<'de> for OutputFieldSpec
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
impl Eq for OutputFieldSpec
Source§impl PartialEq for OutputFieldSpec
impl PartialEq for OutputFieldSpec
Source§fn eq(&self, other: &OutputFieldSpec) -> bool
fn eq(&self, other: &OutputFieldSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RunxSchema for OutputFieldSpec
impl RunxSchema for OutputFieldSpec
Source§fn json_schema() -> Value
fn json_schema() -> Value
The inlined JSON Schema for this type.
Source§impl Serialize for OutputFieldSpec
impl Serialize for OutputFieldSpec
impl StructuralPartialEq for OutputFieldSpec
Auto Trait Implementations§
impl Freeze for OutputFieldSpec
impl RefUnwindSafe for OutputFieldSpec
impl Send for OutputFieldSpec
impl Sync for OutputFieldSpec
impl Unpin for OutputFieldSpec
impl UnsafeUnpin for OutputFieldSpec
impl UnwindSafe for OutputFieldSpec
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