pub struct WebDocument {
pub html: String,
pub csp: Value,
pub permissions: Value,
pub prefers_border: Option<bool>,
}Expand description
The answer to byob/document: the surface’s HTML and what it asks of the sandbox.
Fields§
§html: String§csp: ValueThe resource’s _meta.ui.csp as declared (byob keeps its own strict policy and only
reports these; see the module docs of the client).
permissions: Value_meta.ui.permissions as declared (none are granted).
prefers_border: Option<bool>_meta.ui.prefersBorder.
Trait Implementations§
Source§impl Clone for WebDocument
impl Clone for WebDocument
Source§impl Debug for WebDocument
impl Debug for WebDocument
Source§impl Default for WebDocument
impl Default for WebDocument
Source§impl<'de> Deserialize<'de> for WebDocument
impl<'de> Deserialize<'de> for WebDocument
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 PartialEq for WebDocument
impl PartialEq for WebDocument
Source§impl Serialize for WebDocument
impl Serialize for WebDocument
impl StructuralPartialEq for WebDocument
Auto Trait Implementations§
impl Forget for WebDocument
impl Freeze for WebDocument
impl Move for WebDocument
impl RefUnwindSafe for WebDocument
impl Send for WebDocument
impl Sync for WebDocument
impl Unpin for WebDocument
impl UnsafeUnpin for WebDocument
impl UnwindSafe for WebDocument
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