pub struct Options {
pub limits: Limits,
pub plan_cache_max_frame_bytes: usize,
}Expand description
Decoder configuration.
New options should be added here instead of creating new public function variants.
Fields§
§limits: LimitsDefensive parser, graph, allocation, and expansion limits.
plan_cache_max_frame_bytes: usizeMaximum frame size eligible for reusable decoder plan caching.
Set to 0 to disable plan caching.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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