Struct chromiumoxide::cdp::browser_protocol::page::FrameResource
source · 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§fn eq(&self, other: &FrameResource) -> bool
fn eq(&self, other: &FrameResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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