pub struct ImageMetadataRequest {
pub input: String,
pub format: String,
pub max_decompressed_bytes: u64,
pub max_xml_depth: u32,
pub max_xml_events: u64,
pub max_boxes: u64,
pub max_rows: u64,
pub max_output_bytes: u64,
}Expand description
Request body for the image-metadata adapter, which lifts
textual metadata out of a raster behind the jail.
The ceilings travel in the request because the worker, not the
parent, enforces them, and they are rules data the parent reads
from the registry, matching RecordsRequest. A source over any
ceiling fails closed with a stable image-metadata-* reason.
Fields§
§input: StringInput file name inside the jail.
format: StringThe detected carrier format: png, jpeg, webp, or
heic.
max_decompressed_bytes: u64Ceiling on the inflated size of any single compressed text block, checked incrementally during inflation.
max_xml_depth: u32Ceiling on the nesting depth of an xmp parse.
max_xml_events: u64Ceiling on the event count of an xmp parse.
max_boxes: u64Ceiling on the box count walked in an iso base media file format carrier.
max_rows: u64Ceiling on emitted metadata rows across all surfaces.
max_output_bytes: u64Ceiling on the rendered artifact text, under the runner response cap.
Trait Implementations§
Source§impl Clone for ImageMetadataRequest
impl Clone for ImageMetadataRequest
Source§impl Debug for ImageMetadataRequest
impl Debug for ImageMetadataRequest
Source§impl<'de> Deserialize<'de> for ImageMetadataRequest
impl<'de> Deserialize<'de> for ImageMetadataRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ImageMetadataRequest
impl RefUnwindSafe for ImageMetadataRequest
impl Send for ImageMetadataRequest
impl Sync for ImageMetadataRequest
impl Unpin for ImageMetadataRequest
impl UnsafeUnpin for ImageMetadataRequest
impl UnwindSafe for ImageMetadataRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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