pub struct FlagProps {Show 17 fields
pub type: Type,
pub size: Size,
pub class: &'static str,
pub aria_label: String,
pub style: &'static str,
pub horizontal_style: &'static str,
pub vertical_style: &'static str,
pub stripe_style: &'static str,
pub small_style: &'static str,
pub medium_style: &'static str,
pub large_style: &'static str,
pub container_style: &'static str,
pub tooltip_style: &'static str,
pub container_class: &'static str,
pub flag_class: &'static str,
pub stripe_class: &'static str,
pub tooltip_class: &'static str,
}Available on crate feature
dio only.Fieldsยง
ยงtype: Typeยงsize: Sizeยงclass: &'static strยงaria_label: Stringยงstyle: &'static strยงhorizontal_style: &'static strยงvertical_style: &'static strยงstripe_style: &'static strยงsmall_style: &'static strยงmedium_style: &'static strยงlarge_style: &'static strยงcontainer_style: &'static strยงtooltip_style: &'static strยงcontainer_class: &'static strยงflag_class: &'static strยงstripe_class: &'static strยงtooltip_class: &'static strImplementationsยง
Sourceยงimpl FlagProps
impl FlagProps
Sourcepub fn builder() -> FlagPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> FlagPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building FlagProps.
On the builder, call .r#type(...)(optional), .size(...)(optional), .class(...)(optional), .aria_label(...)(optional), .style(...)(optional), .horizontal_style(...)(optional), .vertical_style(...)(optional), .stripe_style(...)(optional), .small_style(...)(optional), .medium_style(...)(optional), .large_style(...)(optional), .container_style(...)(optional), .tooltip_style(...)(optional), .container_class(...)(optional), .flag_class(...)(optional), .stripe_class(...)(optional), .tooltip_class(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FlagProps.
Trait Implementationsยง
Sourceยงimpl Properties for FlagPropswhere
Self: Clone,
impl Properties for FlagPropswhere
Self: Clone,
Sourceยงtype Builder = FlagPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
type Builder = FlagPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
The type of the builder for this component.
Used to create โin-progressโ versions of the props.
Sourceยงfn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Make the old props equal to the new props. Return if the props were equal and should be memoized.
Sourceยงfn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
Create a component from the props.
impl StructuralPartialEq for FlagProps
Auto Trait Implementationsยง
impl Freeze for FlagProps
impl RefUnwindSafe for FlagProps
impl Send for FlagProps
impl Sync for FlagProps
impl Unpin for FlagProps
impl UnwindSafe for FlagProps
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.