Skip to main content

Fields

Trait Fields 

Source
pub trait Fields {
    const FIELDS: &'static [(&'static str, &'static str)];
}
Expand description

A struct with named fields (#[derive(Schema)]): each field’s Rust name and its name in files.

Required Associated Constants§

Source

const FIELDS: &'static [(&'static str, &'static str)]

Each field’s Rust name and the key it’s written as.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Fields for Diagnostic

Source§

const FIELDS: &'static [(&'static str, &'static str)]

Source§

impl Fields for FieldDoc

Source§

const FIELDS: &'static [(&'static str, &'static str)]

Source§

impl Fields for ShapeDoc

Source§

const FIELDS: &'static [(&'static str, &'static str)]

Source§

impl Fields for VariantDoc

Source§

const FIELDS: &'static [(&'static str, &'static str)]