pub struct StyleInfo {
pub title: Option<String>,
pub id: Option<String>,
pub description: Option<String>,
pub default_locale: Option<String>,
pub fields: Vec<CitationField>,
pub source: Option<StyleSource>,
pub short_name: Option<String>,
pub edition: Option<String>,
pub citum_version: Option<String>,
}Expand description
Style metadata.
Fields§
§title: Option<String>Human-readable title of the style.
id: Option<String>Stable identifier for the style, usually a URI or slug.
description: Option<String>Short summary of the style’s intended use or provenance.
default_locale: Option<String>Default locale for the style (e.g., “en-US”, “de-DE”). Used for locale-aware term resolution.
fields: Vec<CitationField>Discipline classifications for this style.
source: Option<StyleSource>Provenance: set when this style was adapted from a CSL 1.0 source.
short_name: Option<String>Concise display name for the style family, used by UIs to label
search results and match banners (e.g. "APA", "Chicago Notes",
"MLA"). Omit for journal-specific styles whose full title is their
identity. Combine with edition to produce labels like "APA 7th".
edition: Option<String>Edition or version qualifier used alongside short_name to
disambiguate multiple editions of the same style family
(e.g. "7th", "18th edition"). Omit when only one edition exists.
citum_version: Option<String>Minimum Citum engine version required to load and render this style.
Accepts a semver::VersionReq-compatible string (e.g. ">=0.38.0",
"^0.40"). When the running engine does not satisfy the requirement,
the resolver returns
ResolutionError::VersionMismatch
instead of attempting to deserialize fields the engine may not
understand. Omit for styles that use only stable, long-lived features.