pub enum FieldContext {
StructDefinition {
struct_name: String,
field_type: String,
},
EnumVariantDefinition {
enum_name: String,
variant_name: String,
field_type: String,
},
StructLiteral {
struct_name: String,
},
}Expand description
Context in which a field appears
Variants§
Trait Implementations§
Source§impl Clone for FieldContext
impl Clone for FieldContext
Source§fn clone(&self) -> FieldContext
fn clone(&self) -> FieldContext
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 FieldContext
impl Debug for FieldContext
Source§impl<'de> Deserialize<'de> for FieldContext
impl<'de> Deserialize<'de> for FieldContext
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
Auto Trait Implementations§
impl Freeze for FieldContext
impl RefUnwindSafe for FieldContext
impl Send for FieldContext
impl Sync for FieldContext
impl Unpin for FieldContext
impl UnsafeUnpin for FieldContext
impl UnwindSafe for FieldContext
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