pub struct ContentTypeObservation {
pub key: String,
pub content_type: String,
pub byte_length: u64,
}Expand description
One observation per scrape.
Fields§
§key: StringIdentity the observation is keyed under. Same identity → same history slot.
content_type: StringRaw Content-Type header value.
byte_length: u64Response body byte length.
Trait Implementations§
Source§impl Clone for ContentTypeObservation
impl Clone for ContentTypeObservation
Source§fn clone(&self) -> ContentTypeObservation
fn clone(&self) -> ContentTypeObservation
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 ContentTypeObservation
impl Debug for ContentTypeObservation
Source§impl<'de> Deserialize<'de> for ContentTypeObservation
impl<'de> Deserialize<'de> for ContentTypeObservation
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 ContentTypeObservation
Source§impl PartialEq for ContentTypeObservation
impl PartialEq for ContentTypeObservation
Source§fn eq(&self, other: &ContentTypeObservation) -> bool
fn eq(&self, other: &ContentTypeObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentTypeObservation
impl Serialize for ContentTypeObservation
impl StructuralPartialEq for ContentTypeObservation
Auto Trait Implementations§
impl Freeze for ContentTypeObservation
impl RefUnwindSafe for ContentTypeObservation
impl Send for ContentTypeObservation
impl Sync for ContentTypeObservation
impl Unpin for ContentTypeObservation
impl UnsafeUnpin for ContentTypeObservation
impl UnwindSafe for ContentTypeObservation
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.