pub struct WebViewUserScript {
pub source: String,
pub at_document_end: bool,
pub for_main_frame_only: bool,
}Expand description
An object that represents a script that can be injected into webpages
Fields§
§source: StringThe script source.
at_document_end: boolWhether script should be injected at the end of a document or the start.
for_main_frame_only: boolWhether the script should be injected into all frames or just the main frame.
Implementations§
Trait Implementations§
Source§impl Default for WebViewUserScript
impl Default for WebViewUserScript
Source§fn default() -> WebViewUserScript
fn default() -> WebViewUserScript
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebViewUserScript
impl RefUnwindSafe for WebViewUserScript
impl Send for WebViewUserScript
impl Sync for WebViewUserScript
impl Unpin for WebViewUserScript
impl UnsafeUnpin for WebViewUserScript
impl UnwindSafe for WebViewUserScript
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