pub struct RawSnapshot {
pub url: Url,
pub html: String,
pub headers: HashMap<String, String>,
pub encoding: String,
pub compressed_size: Option<u64>,
pub decompressed_size: u64,
pub timestamp: DateTime<Utc>,
pub hash: String,
}Expand description
Raw snapshot of a page
Fields§
§url: UrlSource URL
html: StringRaw HTML
headers: HashMap<String, String>Raw HTTP headers
encoding: StringEncoding used
compressed_size: Option<u64>Compressed size
decompressed_size: u64Decompressed size
timestamp: DateTime<Utc>Timestamp
hash: StringHash SHA-256 du HTML
Implementations§
Trait Implementations§
Source§impl Clone for RawSnapshot
impl Clone for RawSnapshot
Source§fn clone(&self) -> RawSnapshot
fn clone(&self) -> RawSnapshot
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 moreAuto Trait Implementations§
impl Freeze for RawSnapshot
impl RefUnwindSafe for RawSnapshot
impl Send for RawSnapshot
impl Sync for RawSnapshot
impl Unpin for RawSnapshot
impl UnwindSafe for RawSnapshot
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