Struct NavShellProps
pub struct NavShellProps {Show 15 fields
pub content_kind: ContentKind,
pub title: Option<String>,
pub count: Option<i64>,
pub overview_title: Option<String>,
pub overview_count: Option<i64>,
pub sidebar_title: Option<String>,
pub can_go_back: bool,
pub sidebar: Option<Box<dyn Widget>>,
pub overview: Option<Box<dyn Widget>>,
pub content: Option<Box<dyn Widget>>,
pub inspector: Option<Box<dyn Widget>>,
pub actions: Vec<Box<dyn Widget>>,
pub overview_actions: Vec<Box<dyn Widget>>,
pub pane: Option<NavPane>,
pub back: Event,
}Expand description
The one window shell: a sidebar of places, an overview list, the content and an inspector, side by side while they fit and one at a time, with Back, when they do not. The header of each column holds its title, its count and its actions.
Fields§
§content_kind: ContentKindWhat the content is, which sets the narrowest it still works at: page unless said.
title: Option<String>The content’s title, in its header.
count: Option<i64>How many things the content lists, beside its title.
overview_title: Option<String>The overview column’s title.
overview_count: Option<i64>How many things the overview lists, beside its title.
The sidebar’s title: what the places are of, the app’s root.
can_go_back: boolWhether the content’s Back goes back now (a drill-down the app keeps).
The places of the app: a navigation list.
overview: Option<Box<dyn Widget>>The list the content is chosen from.
content: Option<Box<dyn Widget>>What the window is for.
inspector: Option<Box<dyn Widget>>Details of what the content shows, beside it.
actions: Vec<Box<dyn Widget>>The content’s actions, in its header.
overview_actions: Vec<Box<dyn Widget>>The overview’s actions, in its header: what the list’s owner offers.
pane: Option<NavPane>The column in front of a narrow window.
back: EventThe content’s Back was pressed.
Trait Implementations§
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<NavShellProps, Error>
fn from_source(source: &mut dyn Source) -> Result<NavShellProps, Error>
source gives. Read more§fn default() -> NavShellProps
fn default() -> NavShellProps
Auto Trait Implementations§
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