pub struct FrameResource {
pub url: String,
pub type: ResourceType,
pub mime_type: String,
pub last_modified: Option<TimeSinceEpoch>,
pub content_size: Option<f64>,
pub failed: Option<bool>,
pub canceled: Option<bool>,
}
Expand description
Information about the Resource on the page. FrameResource
Fields§
§url: String
Resource URL.
type: ResourceType
Type of this resource.
mime_type: String
Resource mimeType as determined by the browser.
last_modified: Option<TimeSinceEpoch>
last-modified timestamp as reported by server.
content_size: Option<f64>
Resource content size.
failed: Option<bool>
True if the resource failed to load.
canceled: Option<bool>
True if the resource was canceled during loading.
Implementations§
Source§impl FrameResource
impl FrameResource
pub fn new( url: impl Into<String>, type: impl Into<ResourceType>, mime_type: impl Into<String>, ) -> FrameResource
Source§impl FrameResource
impl FrameResource
pub fn builder() -> FrameResourceBuilder
Source§impl FrameResource
impl FrameResource
pub const IDENTIFIER: &'static str = "Page.FrameResource"
Trait Implementations§
Source§impl Clone for FrameResource
impl Clone for FrameResource
Source§fn clone(&self) -> FrameResource
fn clone(&self) -> FrameResource
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 FrameResource
impl Debug for FrameResource
Source§impl<'de> Deserialize<'de> for FrameResource
impl<'de> Deserialize<'de> for FrameResource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameResource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameResource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameResource
impl PartialEq for FrameResource
Source§impl Serialize for FrameResource
impl Serialize for FrameResource
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 FrameResource
Auto Trait Implementations§
impl Freeze for FrameResource
impl RefUnwindSafe for FrameResource
impl Send for FrameResource
impl Sync for FrameResource
impl Unpin for FrameResource
impl UnwindSafe for FrameResource
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