pub enum WebSource {
Url(String),
Html {
html: String,
base_url: Option<String>,
},
}Expand description
What a web view should initially display.
Variants§
Url(String)
Navigate to a URL.
Html
Load an inline HTML string, with an optional base URL for relative asset resolution.
Trait Implementations§
impl Eq for WebSource
impl StructuralPartialEq for WebSource
Auto Trait Implementations§
impl Freeze for WebSource
impl RefUnwindSafe for WebSource
impl Send for WebSource
impl Sync for WebSource
impl Unpin for WebSource
impl UnsafeUnpin for WebSource
impl UnwindSafe for WebSource
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