pub enum DocumentBody {
Text {
encoding: Encoding,
head: Window,
coverage: Coverage,
},
Opaque,
}Expand description
What the bytes of one version are to a reader.
Variants§
Text
Text in encoding. head is the first window, counted from byte
zero, a byte-order mark included as the text’s first character.
Opaque
Not text in any encoding this city reads: the version and its length are all a reader is given.
Trait Implementations§
Source§impl Clone for DocumentBody
impl Clone for DocumentBody
Source§impl Debug for DocumentBody
impl Debug for DocumentBody
Source§impl<'de> Deserialize<'de> for DocumentBody
impl<'de> Deserialize<'de> for DocumentBody
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 DocumentBody
Source§impl PartialEq for DocumentBody
impl PartialEq for DocumentBody
Source§impl Serialize for DocumentBody
impl Serialize for DocumentBody
impl StructuralPartialEq for DocumentBody
Auto Trait Implementations§
impl Freeze for DocumentBody
impl RefUnwindSafe for DocumentBody
impl Send for DocumentBody
impl Sync for DocumentBody
impl Unpin for DocumentBody
impl UnsafeUnpin for DocumentBody
impl UnwindSafe for DocumentBody
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