pub struct MetaPropsBuilder<TypedBuilderFields = ((), (), (), (), ())> { /* private fields */ }
Expand description

Builder for MetaProps instances.

See MetaProps::builder() for more info.

Implementations§

source§

impl<__name, __property, __http_equiv, __content> MetaPropsBuilder<((), __name, __property, __http_equiv, __content)>

source

pub fn charset( self, charset: impl Into<TextProp> ) -> MetaPropsBuilder<((Option<TextProp>,), __name, __property, __http_equiv, __content)>

charset: implInto<TextProp>

The charset attribute.

source§

impl<__charset, __property, __http_equiv, __content> MetaPropsBuilder<(__charset, (), __property, __http_equiv, __content)>

source

pub fn name( self, name: impl Into<TextProp> ) -> MetaPropsBuilder<(__charset, (Option<TextProp>,), __property, __http_equiv, __content)>

name: implInto<TextProp>

The name attribute.

source§

impl<__charset, __name, __http_equiv, __content> MetaPropsBuilder<(__charset, __name, (), __http_equiv, __content)>

source

pub fn property( self, property: impl Into<TextProp> ) -> MetaPropsBuilder<(__charset, __name, (Option<TextProp>,), __http_equiv, __content)>

property: implInto<TextProp>

The property attribute.

source§

impl<__charset, __name, __property, __content> MetaPropsBuilder<(__charset, __name, __property, (), __content)>

source

pub fn http_equiv( self, http_equiv: impl Into<TextProp> ) -> MetaPropsBuilder<(__charset, __name, __property, (Option<TextProp>,), __content)>

http_equiv: implInto<TextProp>

The http-equiv attribute.

source§

impl<__charset, __name, __property, __http_equiv> MetaPropsBuilder<(__charset, __name, __property, __http_equiv, ())>

source

pub fn content( self, content: impl Into<TextProp> ) -> MetaPropsBuilder<(__charset, __name, __property, __http_equiv, (Option<TextProp>,))>

content: implInto<TextProp>

The content attribute.

source§

impl<__charset: MetaPropsBuilder_Optional<Option<TextProp>>, __name: MetaPropsBuilder_Optional<Option<TextProp>>, __property: MetaPropsBuilder_Optional<Option<TextProp>>, __http_equiv: MetaPropsBuilder_Optional<Option<TextProp>>, __content: MetaPropsBuilder_Optional<Option<TextProp>>> MetaPropsBuilder<(__charset, __name, __property, __http_equiv, __content)>

source

pub fn build(self) -> MetaProps

Finalise the builder and create its MetaProps instance

Trait Implementations§

source§

impl<TypedBuilderFields> Clone for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<TypedBuilderFields> RefUnwindSafe for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: RefUnwindSafe,

§

impl<TypedBuilderFields> Send for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: Send,

§

impl<TypedBuilderFields> Sync for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: Sync,

§

impl<TypedBuilderFields> Unpin for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: Unpin,

§

impl<TypedBuilderFields> UnwindSafe for MetaPropsBuilder<TypedBuilderFields>where TypedBuilderFields: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more