pub struct Reload {
pub ignore_cache: Option<bool>,
pub script_to_evaluate_on_load: Option<String>,
pub loader_id: Option<LoaderId>,
}Expand description
Reloads given page optionally ignoring the cache.
Fields§
§ignore_cache: Option<bool>If true, browser cache is ignored (as if the user pressed Shift+refresh).
script_to_evaluate_on_load: Option<String>If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.
loader_id: Option<LoaderId>If set, an error will be thrown if the target page’s main frame’s loader id does not match the provided id. This prevents accidentally reloading an unintended target in case there’s a racing navigation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reload
impl<'de> Deserialize<'de> for Reload
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
Source§impl Method for Reload
impl Method for Reload
const NAME: &'static str = "Page.reload"
type ReturnObject = ReloadReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
impl StructuralPartialEq for Reload
Auto Trait Implementations§
impl Freeze for Reload
impl RefUnwindSafe for Reload
impl Send for Reload
impl Sync for Reload
impl Unpin for Reload
impl UnsafeUnpin for Reload
impl UnwindSafe for Reload
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