pub struct PublishedMemConfig {
pub format: u32,
pub name: String,
pub version: Version,
pub description: Option<String>,
pub title: Option<String>,
pub subject: Option<MemSubject>,
pub authors: Option<Vec<String>>,
pub schema: SchemaRef,
}Expand description
Strict-ingress shape of a mem config. This is the only metadata
form that enters a .mem archive. MemConfig carries author-only
fields (writeGuidance, rules, publish, readMems, language,
community, defaultSchema, vcs, plus any key captured in
extra) that never belong in a published archive;
published_config_from projects MemConfig →
PublishedMemConfig, dropping everything outside the whitelist.
deny_unknown_fields + no serde(flatten) on purpose: the validator
re-parses this shape with the same struct as defense-in-depth, so any
legacy author key smuggled into an archive surfaces as a rejection
instead of a silently-tolerated payload.
Fields§
§format: u32§name: String§version: Version§description: Option<String>§title: Option<String>Human-readable display title (format ≥ 4). Display text, not identity — a format-3 archive simply has none.
subject: Option<MemSubject>The mem’s subject block (format ≥ 4), published verbatim — exclusions included and in order.
schema: SchemaRefTrait Implementations§
Source§impl Clone for PublishedMemConfig
impl Clone for PublishedMemConfig
Source§fn clone(&self) -> PublishedMemConfig
fn clone(&self) -> PublishedMemConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more