Struct moxie_dom::elements::metadata::BaseBuilder[][src]

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

The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.

If either of its inherent attributes are specified, this element must come before other elements with attributes whose values are URLs, such as ’s href attribute.

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

Implementations

impl BaseBuilder[src]

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

The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.

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

A keyword or author-defined name of the default browsing context to display the result when links or forms cause navigation, for <a> or <form> elements without an explicit target attribute. The attribute value targets a browsing context (such as a tab, window, or <iframe>).

The following keywords have special meanings:

  • _self: Load the result into the same browsing context as the current one. (This is the default.)
  • _blank: Load the result into a new, unnamed browsing context.
  • _parent: Load the result into the parent browsing context of the current one. (If the current page is inside a frame.) If there is no parent, behaves the same way as _self.
  • _top: Load the result into the topmost browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, behaves the same way as _self.

Trait Implementations

impl ElementBuilder for BaseBuilder[src]

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

impl GlobalEventHandler for BaseBuilder[src]

impl HtmlElementBuilder for BaseBuilder[src]

impl NodeBuilder for BaseBuilder[src]

type Output = Base

The type of the DOM node

fn build(self) -> Base[src]

Initialize the element with all of the attributes so far.

impl NodeWrapper for BaseBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for BaseBuilder

impl !Send for BaseBuilder

impl !Sync for BaseBuilder

impl Unpin for BaseBuilder

impl !UnwindSafe for BaseBuilder

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: NodeWrapper
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

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

impl<T> Instrument 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.