pub struct WrapOptions {
pub max_bytes: usize,
pub block_on_injection: bool,
}Fields§
§max_bytes: usizeTruncate to this many bytes (on a UTF-8 boundary) with a marker. 0 = no limit.
block_on_injection: boolReplace content that trips the injection heuristics with a placeholder.
Trait Implementations§
Source§impl Clone for WrapOptions
impl Clone for WrapOptions
Source§impl Debug for WrapOptions
impl Debug for WrapOptions
Auto Trait Implementations§
impl Freeze for WrapOptions
impl RefUnwindSafe for WrapOptions
impl Send for WrapOptions
impl Sync for WrapOptions
impl Unpin for WrapOptions
impl UnsafeUnpin for WrapOptions
impl UnwindSafe for WrapOptions
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