pub struct VariantArm {
pub description: String,
pub field_type: FieldType,
}Expand description
Fields§
§description: StringDescription of the arm — typically the description keyword from the
source JSON Schema arm, falling back to the discriminator tag or an
auto-generated name when absent.
field_type: FieldTypeThe arm’s structural type.
Trait Implementations§
Source§impl Clone for VariantArm
impl Clone for VariantArm
Source§fn clone(&self) -> VariantArm
fn clone(&self) -> VariantArm
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 VariantArm
impl Debug for VariantArm
Source§impl<'de> Deserialize<'de> for VariantArm
impl<'de> Deserialize<'de> for VariantArm
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 VariantArm
impl PartialEq for VariantArm
Source§impl Serialize for VariantArm
impl Serialize for VariantArm
impl StructuralPartialEq for VariantArm
Auto Trait Implementations§
impl Freeze for VariantArm
impl RefUnwindSafe for VariantArm
impl Send for VariantArm
impl Sync for VariantArm
impl Unpin for VariantArm
impl UnsafeUnpin for VariantArm
impl UnwindSafe for VariantArm
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