Enum MarkerKind
pub enum MarkerKind {
Image,
Audio,
Video,
Document,
}Expand description
The disposition a receiving channel chose when it rendered an attachment’s marker into the message text.
A channel resolves this against the provider’s loadability contract before
it renders: an image the multimodal loader will accept becomes Image,
and one it will not becomes Document so the saved path stays reachable
without promising the provider bytes it drops.
Variants§
Image
A re-loadable [IMAGE:<target>] the multimodal loader accepts.
Audio
An [AUDIO:<target>] reference.
Video
A [VIDEO:<target>] reference.
Document
A [Document: name] <target>, deliberately not an image.
Implementations§
Source§impl MarkerKind
impl MarkerKind
Sourcepub fn defers_enrichment(self) -> bool
pub fn defers_enrichment(self) -> bool
Whether a later enrichment stage must defer to this rendered marker rather than re-deciding the attachment’s kind from its payload.
True for the two visual dispositions a channel resolves against the
provider’s loadability contract. Re-running payload classification on a
channel-rendered image or document produces a contradictory second
annotation, and for a non-loadable image document an [IMAGE:data:...]
copy the provider then rejects. Audio and video carry no such
image/document ambiguity, so they keep the existing per-kind enrichment.
Trait Implementations§
Source§impl Clone for MarkerKind
impl Clone for MarkerKind
Source§fn clone(&self) -> MarkerKind
fn clone(&self) -> MarkerKind
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more