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 moreimpl Copy for MarkerKind
Source§impl Debug for MarkerKind
impl Debug for MarkerKind
impl Eq for MarkerKind
Source§impl PartialEq for MarkerKind
impl PartialEq for MarkerKind
impl StructuralPartialEq for MarkerKind
Auto Trait Implementations§
impl Freeze for MarkerKind
impl RefUnwindSafe for MarkerKind
impl Send for MarkerKind
impl Sync for MarkerKind
impl Unpin for MarkerKind
impl UnsafeUnpin for MarkerKind
impl UnwindSafe for MarkerKind
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more