pub struct ImageReadOptions {
pub max_bytes: usize,
pub allow_svg: bool,
pub allow_unknown_images: bool,
}Expand description
Options for bounded image resource reads.
Fields§
§max_bytes: usizeHard cap on image payload bytes.
allow_svg: boolWhether SVG images are accepted.
allow_unknown_images: boolWhether unknown/extension-only image resources are accepted.
Trait Implementations§
Source§impl Clone for ImageReadOptions
impl Clone for ImageReadOptions
Source§fn clone(&self) -> ImageReadOptions
fn clone(&self) -> ImageReadOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ImageReadOptions
impl Debug for ImageReadOptions
Source§impl Default for ImageReadOptions
impl Default for ImageReadOptions
Source§impl PartialEq for ImageReadOptions
impl PartialEq for ImageReadOptions
impl Copy for ImageReadOptions
impl Eq for ImageReadOptions
impl StructuralPartialEq for ImageReadOptions
Auto Trait Implementations§
impl Freeze for ImageReadOptions
impl RefUnwindSafe for ImageReadOptions
impl Send for ImageReadOptions
impl Sync for ImageReadOptions
impl Unpin for ImageReadOptions
impl UnsafeUnpin for ImageReadOptions
impl UnwindSafe for ImageReadOptions
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