pub struct RewriteOptions {
pub checksums: ChecksumPolicy,
pub max_bytes: usize,
pub replace_modified: bool,
pub normalize_newlines: bool,
}Expand description
In-memory replacement limits and explicit overwrite policy.
Fields§
§checksums: ChecksumPolicyThe best-effort checksum policy.
max_bytes: usizeMaximum source and rewritten document bytes, checked before construction.
replace_modified: boolPermit replacing an unverified or modified existing body.
normalize_newlines: boolNormalize all document line endings to LF, matching pinned Unix output. Otherwise unchanged source bytes and the source’s first newline are kept.
Trait Implementations§
Source§impl Clone for RewriteOptions
impl Clone for RewriteOptions
Source§fn clone(&self) -> RewriteOptions
fn clone(&self) -> RewriteOptions
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 RewriteOptions
impl Debug for RewriteOptions
Source§impl Default for RewriteOptions
impl Default for RewriteOptions
Source§fn default() -> RewriteOptions
fn default() -> RewriteOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RewriteOptions
impl<'de> Deserialize<'de> for RewriteOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RewriteOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RewriteOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RewriteOptions
impl Serialize for RewriteOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for RewriteOptions
impl Freeze for RewriteOptions
impl Move for RewriteOptions
impl RefUnwindSafe for RewriteOptions
impl Send for RewriteOptions
impl Sync for RewriteOptions
impl Unpin for RewriteOptions
impl UnsafeUnpin for RewriteOptions
impl UnwindSafe for RewriteOptions
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