pub struct WebViewAttributes {
pub source: Option<WebSource>,
pub user_agent: Option<String>,
pub transparent: bool,
pub devtools: bool,
pub custom_protocols: Vec<String>,
}Expand description
Engine configuration accumulated by the WebView
builders and handed to WebViewBackend::open.
Fields§
§source: Option<WebSource>Initial content. None means “blank page”.
user_agent: Option<String>Override the engine’s User-Agent.
transparent: boolTransparent engine background (compose over Teksilo content).
devtools: boolEnable the engine’s devtools (debug builds only by convention).
custom_protocols: Vec<String>Custom-protocol scheme names the app wants to serve (app → app://).
The dispatch closures live app-side; the backend only needs the names
at open time to register the schemes.
Trait Implementations§
Source§impl Clone for WebViewAttributes
impl Clone for WebViewAttributes
Source§impl Debug for WebViewAttributes
impl Debug for WebViewAttributes
Auto Trait Implementations§
impl Freeze for WebViewAttributes
impl RefUnwindSafe for WebViewAttributes
impl Send for WebViewAttributes
impl Sync for WebViewAttributes
impl Unpin for WebViewAttributes
impl UnsafeUnpin for WebViewAttributes
impl UnwindSafe for WebViewAttributes
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