pub struct EncodingRules {
pub expected_encoding: String,
pub validate_utf8: bool,
pub detect_encoding_issues: bool,
pub allow_bom: bool,
}Expand description
Rules for encoding validation.
Fields§
§expected_encoding: StringExpected encoding (e.g., “UTF-8”)
validate_utf8: boolWhether to validate UTF-8 correctness
detect_encoding_issues: boolWhether to detect and report encoding issues
allow_bom: boolWhether to allow BOM (Byte Order Mark)
Trait Implementations§
Source§impl Clone for EncodingRules
impl Clone for EncodingRules
Source§fn clone(&self) -> EncodingRules
fn clone(&self) -> EncodingRules
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 EncodingRules
impl Debug for EncodingRules
Source§impl Default for EncodingRules
impl Default for EncodingRules
Source§impl<'de> Deserialize<'de> for EncodingRules
impl<'de> Deserialize<'de> for EncodingRules
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EncodingRules
impl RefUnwindSafe for EncodingRules
impl Send for EncodingRules
impl Sync for EncodingRules
impl Unpin for EncodingRules
impl UnsafeUnpin for EncodingRules
impl UnwindSafe for EncodingRules
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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