pub struct FrontmatterSchema {
pub fields: HashMap<String, FieldDefinition>,
pub internal_fields: Vec<String>,
}Expand description
Frontmatter schema: a map of field name to definition.
Fields§
§fields: HashMap<String, FieldDefinition>Field definitions keyed by field name.
internal_fields: Vec<String>Field names that exist in the build pipeline’s FrontMatter struct
but are not surfaced in the editor form (the skip_schema: true
entries from BUILTIN_FIELDS). The editor uses this list to filter
unknown values it shouldn’t render as chips — auto-generated fields,
build-only fields, and site-level config.
Empty for plugin-contributed schemas loaded from JSON (they have no
notion of internal fields). #[serde(default)] keeps backward
compatibility with externally-loaded schema JSON that predates this
field.
Trait Implementations§
Source§impl Clone for FrontmatterSchema
impl Clone for FrontmatterSchema
Source§fn clone(&self) -> FrontmatterSchema
fn clone(&self) -> FrontmatterSchema
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 FrontmatterSchema
impl Debug for FrontmatterSchema
Source§impl<'de> Deserialize<'de> for FrontmatterSchema
impl<'de> Deserialize<'de> for FrontmatterSchema
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 FrontmatterSchema
impl RefUnwindSafe for FrontmatterSchema
impl Send for FrontmatterSchema
impl Sync for FrontmatterSchema
impl Unpin for FrontmatterSchema
impl UnsafeUnpin for FrontmatterSchema
impl UnwindSafe for FrontmatterSchema
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