pub struct SwitchBuilder {
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub checked: Option<Signal<bool>>,
pub disabled: Option<bool>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§label: Option<&'static str>§description: Option<&'static str>§checked: Option<Signal<bool>>§disabled: Option<bool>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl SwitchBuilder
impl SwitchBuilder
pub fn label(self, val: impl Into<Option<&'static str>>) -> Self
pub fn description(self, val: impl Into<Option<&'static str>>) -> Self
pub fn checked(self, val: impl Into<Signal<bool>>) -> Self
pub fn disabled(self, val: impl Into<Option<bool>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SwitchBuilder
impl !Send for SwitchBuilder
impl !Sync for SwitchBuilder
impl !UnwindSafe for SwitchBuilder
impl Forget for SwitchBuilder
impl Freeze for SwitchBuilder
impl Move for SwitchBuilder
impl Unpin for SwitchBuilder
impl UnsafeUnpin for SwitchBuilder
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