pub struct DefaultLayout {
pub show_empty: Option<bool>,
pub inline: Option<bool>,
pub inline_header: Option<bool>,
pub inline_alias: Option<bool>,
pub inline_limit: Option<u32>,
}
Expand description
§Attributes
[show_empty="false"] [inline="false"] [inline_limit="4"] [inline_header="true"] [inline_alias="false"]
The <DefaultLayout>
element is an optional part of this specificatPath::new(ion. Implementations that do not support the <DefaultLayout>
element should preserve any <DefaultLayout>
elements and their contents as far as possible. Each <Menu>
may optionally contain a <DefaultLayout>
element which defines the default-layout for the current menu and all its sub-menus. If a menu has a <DefaultLayout>
element then this will override any default-layout specified by a parent menu. The default-layout defines the suggested layout if a <Menu>
element does either not have <Layout>
element or if it has an empty <Layout>
element. For explanations of the various attributes see the
<DefaultLayout show_empty="false" inline="false" inline_limit="4" inline_header="true" inline_alias="false">
<Merge type="menus"/><Merge type="files"/>
</DefaultLayout>
Fields§
§show_empty: Option<bool>
§inline: Option<bool>
§inline_header: Option<bool>
§inline_alias: Option<bool>
§inline_limit: Option<u32>
Trait Implementations§
Source§impl Clone for DefaultLayout
impl Clone for DefaultLayout
Source§fn clone(&self) -> DefaultLayout
fn clone(&self) -> DefaultLayout
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more