pub struct RawRecordHeader {
pub version: String,
pub headers: HashMap<WarcHeader, Vec<u8>>,
}Expand description
A header block of a single WARC record as parsed from a data stream.
It is guaranteed to be well-formed, but may not be valid according to the specification.
Use the Display trait to generate the formatted representation.
Fields§
§version: StringThe WARC standard version this record reports conformance to.
headers: HashMap<WarcHeader, Vec<u8>>All headers that are part of this record.
Trait Implementations§
Source§impl AsMut<HashMap<WarcHeader, Vec<u8>>> for RawRecordHeader
impl AsMut<HashMap<WarcHeader, Vec<u8>>> for RawRecordHeader
Source§impl AsRef<HashMap<WarcHeader, Vec<u8>>> for RawRecordHeader
impl AsRef<HashMap<WarcHeader, Vec<u8>>> for RawRecordHeader
Source§impl Clone for RawRecordHeader
impl Clone for RawRecordHeader
Source§fn clone(&self) -> RawRecordHeader
fn clone(&self) -> RawRecordHeader
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 RawRecordHeader
impl Debug for RawRecordHeader
Source§impl Display for RawRecordHeader
impl Display for RawRecordHeader
Source§impl PartialEq for RawRecordHeader
impl PartialEq for RawRecordHeader
impl StructuralPartialEq for RawRecordHeader
Auto Trait Implementations§
impl Freeze for RawRecordHeader
impl RefUnwindSafe for RawRecordHeader
impl Send for RawRecordHeader
impl Sync for RawRecordHeader
impl Unpin for RawRecordHeader
impl UnwindSafe for RawRecordHeader
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