pub enum ContentPart {
Text(TextPayload),
Media(MediaRef),
Sealed(SealedPart),
}Expand description
One content atom inside a BlockContent::Message block: ordered,
identity-free, sharing the block’s envelope. The axis for media modalities
is MediaRef::media_type, decided by the host’s resolver and each
protocol’s rendering capabilities; new ContentPart variants are only
for content that is not a run of bytes. Media bytes stay out of facts
forever.
Exhaustive on purpose, like BlockContent. A new part is additive only
in the serde sense: stored material written before it still reads. In Rust
it is a breaking change, because a wildcard arm in a renderer would drop
the new part without a trace.
Variants§
Text(TextPayload)
Plain text; provider role assignment stays the renderer’s job.
Media(MediaRef)
A media reference; bytes never enter facts.
Sealed(SealedPart)
A model-issued wire item the kernel carries and never interprets.