Struct silkenweb::elements::MetaBuilder [−][src]
pub struct MetaBuilder(_);
Implementations
impl MetaBuilder
[src]
impl MetaBuilder
[src]pub fn id(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
pub fn class(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
pub fn charset(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
This attribute declares the document’s character encoding. If the attribute is present, its value must be an ASCII case-insensitive match for the string “utf-8”.
pub fn content(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
This attribute contains the value for the http-equiv or name attribute, depending on which is used.
pub fn http_equiv(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
Defines a pragma directive. The attribute is named http-equiv(alent) because all the allowed values are names of particular HTTP headers:
content-security-policy
: Allows page authors to define a content policy for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.content-type
: If specified, the content attribute must have the valuetext/html; charset=utf-8
. Note: Can only be used in documents served with a text/html MIME type — not in documents served with an XML MIME type.default-style
: Sets the name of the default CSS style sheet set.x-ua-compatible
: If specified, the content attribute must have the value “IE=edge”. User agents are required to ignore this pragma.refresh
: This instruction specifies:- The number of seconds until the page should be reloaded - only if the content attribute contains a positive integer.
- The number of seconds until the page should redirect to another - only if the content attribute contains a positive integer followed by the string ‘;url=’, and a valid URL.
- Accessibility concerns: Pages set with a refresh value run the risk of having the time interval being too short. People navigating with the aid of assistive technology such as a screen reader may be unable to read through and understand the page’s content before being automatically redirected. The abrupt, unannounced updating of the page content may also be disorienting for people experiencing low vision conditions.
pub fn name(self, value: impl AttributeValue<String>) -> MetaBuilder
[src]
The name and content attributes can be used together to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value.
See standard metadata names for details about the set of standard metadata names defined in the HTML specification.
impl MetaBuilder
[src]
impl MetaBuilder
[src]pub fn on_blur(
self,
f: impl FnMut(FocusEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_click(
self,
f: impl FnMut(MouseEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_change(
self,
f: impl FnMut(Event, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(Event, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_dblclick(
self,
f: impl FnMut(MouseEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_focusout(
self,
f: impl FnMut(FocusEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_input(
self,
f: impl FnMut(InputEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(InputEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlMetaElement) + 'static
) -> MetaBuilder
pub fn effect(self, f: impl Effect<HtmlMetaElement>) -> MetaBuilder
[src]
Trait Implementations
impl Builder for MetaBuilder
[src]
impl Builder for MetaBuilder
[src]type Target = Meta
pub fn build(self) -> <MetaBuilder as Builder>::Target
[src]
pub fn into_element(self) -> Element
[src]
impl DomElement for MetaBuilder
[src]
impl DomElement for MetaBuilder
[src]type Target = HtmlMetaElement
pub fn dom_element(&self) -> <MetaBuilder as DomElement>::Target
[src]
impl From<MetaBuilder> for Element
[src]
impl From<MetaBuilder> for Element
[src]pub fn from(builder: MetaBuilder) -> Element
[src]
impl From<MetaBuilder> for ElementBuilder
[src]
impl From<MetaBuilder> for ElementBuilder
[src]pub fn from(builder: MetaBuilder) -> ElementBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MetaBuilder
impl !RefUnwindSafe for MetaBuilder
impl !Send for MetaBuilder
impl !Send for MetaBuilder
impl !Sync for MetaBuilder
impl !Sync for MetaBuilder
impl Unpin for MetaBuilder
impl Unpin for MetaBuilder
impl !UnwindSafe for MetaBuilder
impl !UnwindSafe for MetaBuilder