pub struct PublishedMemConfig {
pub format: u32,
pub name: String,
pub version: Version,
pub description: Option<String>,
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>§schema: SchemaRefTrait Implementations§
Source§impl Clone for PublishedMemConfig
impl Clone for PublishedMemConfig
Source§fn clone(&self) -> PublishedMemConfig
fn clone(&self) -> PublishedMemConfig
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 PublishedMemConfig
impl Debug for PublishedMemConfig
Source§impl<'de> Deserialize<'de> for PublishedMemConfig
impl<'de> Deserialize<'de> for PublishedMemConfig
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 PublishedMemConfig
impl RefUnwindSafe for PublishedMemConfig
impl Send for PublishedMemConfig
impl Sync for PublishedMemConfig
impl Unpin for PublishedMemConfig
impl UnsafeUnpin for PublishedMemConfig
impl UnwindSafe for PublishedMemConfig
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