Expand description
Shared capability types and content model for typub.
This crate defines the canonical enum types for platform capabilities, asset strategies, theme identifiers, and the core content model.
Per [[ADR-0002]], extracting these types into a shared subcrate ensures:
- Single source of truth for enum variants
- Serde-based validation of TOML config at build time
- Type safety via
ThemeIdnewtype for theme identifiers
Re-exports§
pub use content::Content;pub use content::ContentFormat;pub use content::ContentMeta;pub use content::DiscoverResult;pub use content::PostInfo;pub use content::PostPlatformConfig;
Modules§
- content
- Content parsing and discovery
Structs§
- Taxonomy
Capability - Taxonomy-related capabilities for content classification and lifecycle. Grouped into a sub-struct for better organization within AdapterCapability.
- ThemeId
- Newtype for theme identifiers.
Enums§
- Asset
Strategy - Strategy for handling assets on each platform.
- Capability
GapBehavior - Behavior when a capability is not supported by a platform.
- Capability
Support - Whether a platform capability is supported.
- Draft
Support - Draft support capability per [[RFC-0005:C-DRAFT-SUPPORT]].
- Link
Resolution - Result of resolving an internal link.
- Math
Delimiters - Math delimiter syntax for Markdown output.
- Math
Rendering - How a platform renders math equations.
- Node
Policy Action - Generic policy action for handling non-conforming or unsupported semantic nodes.