[][src]Struct moxie_dom::elements::embedding::ObjectBuilder

#[must_use = "needs to be built"]pub struct ObjectBuilder { /* fields omitted */ }

The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.

A type for initializing the element's attributes before calling build.

Implementations

impl ObjectBuilder[src]

pub fn build(self) -> Object[src]

Initialize the element with all of the attributes so far.

impl ObjectBuilder[src]

pub fn data(self, to_set: impl ToString) -> Self[src]

Specifies the URL of the resource.

pub fn form(self, to_set: impl ToString) -> Self[src]

The form element, if any, that the object element is associated with (its form owner). The value of the attribute must be an ID of a

element in the same document.

pub fn height(self, to_set: impl ToString) -> Self[src]

The height of the displayed resource, in CSS pixels. No percentages.

pub fn name(self, to_set: impl ToString) -> Self[src]

The name of valid browsing context.

pub fn type_(self, to_set: impl ToString) -> Self[src]

The content type of the resource specified by data. At least one of data and type must be defined.

pub fn typemustmatch(self, to_set: bool) -> Self[src]

Indicates if the type attribute and the actual content type of the resource must match to be used.

pub fn usemap(self, to_set: impl ToString) -> Self[src]

A hash-name reference to a element; that is a '#' followed by the value of a name of a map element.

pub fn width(self, to_set: impl ToString) -> Self[src]

The width of the display resource, in CSS pixels. No percentages.

Trait Implementations

impl Element for ObjectBuilder[src]

impl<E> EventTarget<E> for ObjectBuilder where
    E: GlobalEvent
[src]

impl GlobalEventHandler for ObjectBuilder[src]

impl HtmlElement for ObjectBuilder[src]

impl Node for ObjectBuilder[src]

impl Parent<Param> for ObjectBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for ObjectBuilder

impl !Send for ObjectBuilder

impl !Sync for ObjectBuilder

impl Unpin for ObjectBuilder

impl !UnwindSafe for ObjectBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> Child for N where
    N: Node
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.