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

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

The HTML External Resource Link element (<link>) specifies relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.

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


impl LinkBuilder[src]

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

Initialize the element with all of the attributes so far.

impl LinkBuilder[src]

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

This attribute is only used when rel="preload" or rel="prefetch" has been set on the

element. It specifies the type of content being loaded by the , which is necessary for request matching, application of correct content security policy, and setting of correct Accept request header. Furthermore, rel="preload" uses this as a signal for request prioritization. The table below lists the valid values for this attribute and the elements or resources they apply to.
ValueApplies To