pub struct ZipEntryLocation {
pub file_name: String,
pub local_header_offset: u64,
pub compressed_size: u64,
pub uncompressed_size: u64,
pub extra_field_len: u64,
}Expand description
Location index of a file entry inside a ZIP archive.
Fields§
§file_name: String§local_header_offset: u64§compressed_size: u64§uncompressed_size: u64§extra_field_len: u64Implementations§
Source§impl ZipEntryLocation
impl ZipEntryLocation
Sourcepub fn to_http_range_header(&self) -> (String, String)
pub fn to_http_range_header(&self) -> (String, String)
Generate HTTP Range header for fetching this entry over HTTP.
Trait Implementations§
Source§impl Clone for ZipEntryLocation
impl Clone for ZipEntryLocation
Source§fn clone(&self) -> ZipEntryLocation
fn clone(&self) -> ZipEntryLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZipEntryLocation
impl Debug for ZipEntryLocation
Source§impl<'de> Deserialize<'de> for ZipEntryLocation
impl<'de> Deserialize<'de> for ZipEntryLocation
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 ZipEntryLocation
Source§impl PartialEq for ZipEntryLocation
impl PartialEq for ZipEntryLocation
Source§impl Serialize for ZipEntryLocation
impl Serialize for ZipEntryLocation
impl StructuralPartialEq for ZipEntryLocation
Auto Trait Implementations§
impl Freeze for ZipEntryLocation
impl RefUnwindSafe for ZipEntryLocation
impl Send for ZipEntryLocation
impl Sync for ZipEntryLocation
impl Unpin for ZipEntryLocation
impl UnsafeUnpin for ZipEntryLocation
impl UnwindSafe for ZipEntryLocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more