Struct DisclosureRowProps
pub struct DisclosureRowProps {
pub title: String,
pub secondary: Option<String>,
pub side: Option<String>,
pub icon: Option<Icon>,
pub who: Option<Person>,
pub signal: Option<SignalLevel>,
pub body: Vec<Box<dyn Widget>>,
pub trailing: Option<Box<dyn Widget>>,
pub expanded: Option<bool>,
pub motion: Option<Feel>,
pub toggle: Event,
}Expand description
A row whose body opens in place under it: a device’s details, a run’s log, a setting’s options. Its chevron turns as it opens, and what follows moves down with it. A press on the row, Enter or Space opens and closes it.
Fields§
§title: StringWhat the row is, on its first line.
secondary: Option<String>A line under the title, in secondary ink.
side: Option<String>A quiet line at the far end of the title’s line: who did it and when.
icon: Option<Icon>A glyph before the title: the kind of thing it is.
who: Option<Person>A person before the title, as an avatar: who did the work the row stands for.
signal: Option<SignalLevel>How strong a radio network’s signal is, before the title, for a row that is a network.
body: Vec<Box<dyn Widget>>What opens under the row, in order.
trailing: Option<Box<dyn Widget>>One control on the row’s trailing edge, before the chevron (a device’s Connect): it acts without opening the row.
expanded: Option<bool>Whether the row is open. Unless given, the row keeps it.
motion: Option<Feel>The pace its body unfolds at, and the pace a view’s open or close takes: the theme’s unless it says otherwise.
toggle: EventThe row was opened or closed; carries whether it is open now.
Trait Implementations§
§impl Component for DisclosureRowProps
impl Component for DisclosureRowProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<DisclosureRowProps, Error>
fn from_source(source: &mut dyn Source) -> Result<DisclosureRowProps, Error>
source gives. Read more§impl Default for DisclosureRowProps
impl Default for DisclosureRowProps
§fn default() -> DisclosureRowProps
fn default() -> DisclosureRowProps
Auto Trait Implementations§
impl Freeze for DisclosureRowProps
impl !RefUnwindSafe for DisclosureRowProps
impl !Send for DisclosureRowProps
impl !Sync for DisclosureRowProps
impl Unpin for DisclosureRowProps
impl UnsafeUnpin for DisclosureRowProps
impl !UnwindSafe for DisclosureRowProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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