pub struct CachedResource {
pub url: String,
pub type: ResourceType,
pub response: Option<Response>,
pub body_size: f64,
}
Expand description
Information about the cached resource. CachedResource
Fields§
§url: String
Resource URL. This is the url of the original network request.
type: ResourceType
Type of this resource.
response: Option<Response>
Cached response data.
body_size: f64
Cached response body size.
Implementations§
Source§impl CachedResource
impl CachedResource
pub fn new( url: impl Into<String>, type: impl Into<ResourceType>, body_size: impl Into<f64>, ) -> CachedResource
Source§impl CachedResource
impl CachedResource
pub fn builder() -> CachedResourceBuilder
Source§impl CachedResource
impl CachedResource
pub const IDENTIFIER: &'static str = "Network.CachedResource"
Trait Implementations§
Source§impl Clone for CachedResource
impl Clone for CachedResource
Source§fn clone(&self) -> CachedResource
fn clone(&self) -> CachedResource
Returns a copy 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 moreSource§impl Debug for CachedResource
impl Debug for CachedResource
Source§impl<'de> Deserialize<'de> for CachedResource
impl<'de> Deserialize<'de> for CachedResource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedResource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedResource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CachedResource
impl PartialEq for CachedResource
Source§impl Serialize for CachedResource
impl Serialize for CachedResource
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CachedResource
Auto Trait Implementations§
impl Freeze for CachedResource
impl RefUnwindSafe for CachedResource
impl Send for CachedResource
impl Sync for CachedResource
impl Unpin for CachedResource
impl UnwindSafe for CachedResource
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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