pub struct DecodedBodyValue {
pub value: String,
pub is_truncated: bool,
pub is_encoding_problem: bool,
}Expand description
Result of decode_body_value().
Fields§
§value: StringDecoded, charset-converted text.
is_truncated: boolTrue if max_bytes was reached before the full body was decoded.
is_encoding_problem: boolTrue if the charset conversion encountered unmappable or replacement
characters. Note: also set when max_bytes truncates a multi-byte
character sequence mid-codepoint; in that case the flag reflects the
truncation artifact, not underlying data corruption.
Trait Implementations§
Source§impl Clone for DecodedBodyValue
impl Clone for DecodedBodyValue
Source§fn clone(&self) -> DecodedBodyValue
fn clone(&self) -> DecodedBodyValue
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 DecodedBodyValue
impl Debug for DecodedBodyValue
Source§impl<'de> Deserialize<'de> for DecodedBodyValue
impl<'de> Deserialize<'de> for DecodedBodyValue
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
impl Eq for DecodedBodyValue
Source§impl PartialEq for DecodedBodyValue
impl PartialEq for DecodedBodyValue
Source§fn eq(&self, other: &DecodedBodyValue) -> bool
fn eq(&self, other: &DecodedBodyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DecodedBodyValue
impl Serialize for DecodedBodyValue
impl StructuralPartialEq for DecodedBodyValue
Auto Trait Implementations§
impl Freeze for DecodedBodyValue
impl RefUnwindSafe for DecodedBodyValue
impl Send for DecodedBodyValue
impl Sync for DecodedBodyValue
impl Unpin for DecodedBodyValue
impl UnsafeUnpin for DecodedBodyValue
impl UnwindSafe for DecodedBodyValue
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