pub struct ImageProcessed {
pub src: String,
pub decision: String,
pub reason: Option<String>,
pub captioner: Option<String>,
pub caption: Option<String>,
pub dimensions: Option<ImageDims>,
pub bytes: Option<u64>,
pub error: Option<String>,
}Expand description
One row of the images_processed: frontmatter sidecar (M9). Each <img>
the caption pipeline observes produces one entry — either "captioned"
or "skipped" with a typed reason.
Fields§
§src: String§decision: String"captioned" or "skipped".
reason: Option<String>Lowercased SkipReason variant when decision == "skipped".
captioner: Option<String>Captioner config-key name when the captioner was attempted.
caption: Option<String>The generated caption when decision == "captioned".
dimensions: Option<ImageDims>§bytes: Option<u64>Reported byte length (from Content-Length probe) when known.
error: Option<String>Human-readable error when the captioner or download failed.
Trait Implementations§
Source§impl Clone for ImageProcessed
impl Clone for ImageProcessed
Source§fn clone(&self) -> ImageProcessed
fn clone(&self) -> ImageProcessed
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 ImageProcessed
impl Debug for ImageProcessed
Auto Trait Implementations§
impl Freeze for ImageProcessed
impl RefUnwindSafe for ImageProcessed
impl Send for ImageProcessed
impl Sync for ImageProcessed
impl Unpin for ImageProcessed
impl UnsafeUnpin for ImageProcessed
impl UnwindSafe for ImageProcessed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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