pub struct ContentRange {
pub first_byte: Option<u64>,
pub last_byte: Option<u64>,
pub total_size: Option<u64>,
}Expand description
HTTP 206 Partial Content 等で返される Content-Range ヘッダの解析結果。
Fields§
§first_byte: Option<u64>範囲の開始バイト(bytes */1234 の不満足時は None)。
last_byte: Option<u64>範囲の終了バイト(inclusive、不満足時は None)。
total_size: Option<u64>リソース全体のサイズ(* で未知の場合は None)。
Implementations§
Trait Implementations§
Source§impl Clone for ContentRange
impl Clone for ContentRange
impl Copy for ContentRange
Source§impl Debug for ContentRange
impl Debug for ContentRange
impl Eq for ContentRange
Source§impl PartialEq for ContentRange
impl PartialEq for ContentRange
impl StructuralPartialEq for ContentRange
Auto Trait Implementations§
impl Freeze for ContentRange
impl RefUnwindSafe for ContentRange
impl Send for ContentRange
impl Sync for ContentRange
impl Unpin for ContentRange
impl UnsafeUnpin for ContentRange
impl UnwindSafe for ContentRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.