pub struct ChunkMetadata {
pub total_size: u64,
pub content_type: String,
pub etag: Option<String>,
pub last_modified: Option<String>,
pub status: StatusCode,
pub version: Version,
pub headers: Vec<(String, Vec<u8>)>,
}Expand description
Metadata for a chunked cache entry.
Contains HTTP response metadata without the body, which is stored separately in chunks.
Fields§
§total_size: u64Total size of the file in bytes
content_type: StringContent-Type header value
etag: Option<String>ETag header value, if present
last_modified: Option<String>Last-Modified header value, if present
status: StatusCodeHTTP status code
version: VersionHTTP version
headers: Vec<(String, Vec<u8>)>Additional headers (name, value) pairs
Trait Implementations§
Source§impl Clone for ChunkMetadata
impl Clone for ChunkMetadata
Source§fn clone(&self) -> ChunkMetadata
fn clone(&self) -> ChunkMetadata
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 ChunkMetadata
impl RefUnwindSafe for ChunkMetadata
impl Send for ChunkMetadata
impl Sync for ChunkMetadata
impl Unpin for ChunkMetadata
impl UnsafeUnpin for ChunkMetadata
impl UnwindSafe for ChunkMetadata
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