pub struct BooleanDisplayProps {
pub value: MaybeSignal<bool>,
pub class: String,
pub true_str: &'static str,
pub false_str: &'static str,
}
Expand description
Props for the BooleanDisplay
component.
§Required Props
- value:
impl Into<MaybeSignal<bool>>
§Optional Props
- class:
impl Into<String>
- true_str: [
&'static str
] - false_str: [
&'static str
]
Fields§
§value: MaybeSignal<bool>
§class: String
§true_str: &'static str
§false_str: &'static str
Implementations§
Source§impl BooleanDisplayProps
impl BooleanDisplayProps
Sourcepub fn builder() -> BooleanDisplayPropsBuilder<((), (), (), ())>
pub fn builder() -> BooleanDisplayPropsBuilder<((), (), (), ())>
Create a builder for building BooleanDisplayProps
.
On the builder, call .value(...)
, .class(...)
(optional), .true_str(...)
(optional), .false_str(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of BooleanDisplayProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BooleanDisplayProps
impl !RefUnwindSafe for BooleanDisplayProps
impl !Send for BooleanDisplayProps
impl !Sync for BooleanDisplayProps
impl Unpin for BooleanDisplayProps
impl !UnwindSafe for BooleanDisplayProps
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more