Struct warc::RawRecordHeader
source · [−]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
sourceimpl AsMut<HashMap<WarcHeader, Vec<u8, Global>, RandomState>> for RawRecordHeader
impl AsMut<HashMap<WarcHeader, Vec<u8, Global>, RandomState>> for RawRecordHeader
sourceimpl AsRef<HashMap<WarcHeader, Vec<u8, Global>, RandomState>> for RawRecordHeader
impl AsRef<HashMap<WarcHeader, Vec<u8, Global>, RandomState>> for RawRecordHeader
sourceimpl Clone for RawRecordHeader
impl Clone for RawRecordHeader
sourcefn clone(&self) -> RawRecordHeader
fn clone(&self) -> RawRecordHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RawRecordHeader
impl Debug for RawRecordHeader
sourceimpl Display for RawRecordHeader
impl Display for RawRecordHeader
sourceimpl PartialEq<RawRecordHeader> for RawRecordHeader
impl PartialEq<RawRecordHeader> for RawRecordHeader
sourcefn eq(&self, other: &RawRecordHeader) -> bool
fn eq(&self, other: &RawRecordHeader) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RawRecordHeader) -> bool
fn ne(&self, other: &RawRecordHeader) -> bool
This method tests for !=.
sourceimpl TryFrom<RawRecordHeader> for Record<EmptyBody>
impl TryFrom<RawRecordHeader> for Record<EmptyBody>
impl StructuralPartialEq for RawRecordHeader
Auto Trait Implementations
impl RefUnwindSafe for RawRecordHeader
impl Send for RawRecordHeader
impl Sync for RawRecordHeader
impl Unpin for RawRecordHeader
impl UnwindSafe for RawRecordHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more