#[non_exhaustive]pub struct HostSpec {Show 13 fields
pub version: u32,
pub window: WindowSpec,
pub theme: ThemeSpec,
pub commands: Vec<CommandSpec>,
pub menus: Vec<MenuSpec>,
pub explorer: Vec<TreeSpec>,
pub layout: LayoutSpec,
pub panels: PanelsSpec,
pub status: StatusSpec,
pub widgets: Vec<WidgetSpec>,
pub dialogs: Vec<DialogSpec>,
pub toasts: Vec<ToastSpec>,
pub metadata: BTreeMap<String, String>,
}Available on crate feature
spec only.Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: u32Specification version. A host rejects a newer version.
window: WindowSpecWindow title and size.
theme: ThemeSpecTheme and motion preferences.
commands: Vec<CommandSpec>Commands, their shortcuts, and contexts.
Top-level menus.
explorer: Vec<TreeSpec>Explorer tree.
layout: LayoutSpecEditor groups and tabs.
panels: PanelsSpecWhich side and bottom panels are visible.
status: StatusSpecStatus bar items.
widgets: Vec<WidgetSpec>The content widget tree.
dialogs: Vec<DialogSpec>Dialogs declared by the spec.
toasts: Vec<ToastSpec>Toasts queued on startup.
metadata: BTreeMap<String, String>Extra application metadata.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostSpec
impl<'de> Deserialize<'de> for HostSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for HostSpec
impl JsonSchema for HostSpec
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for HostSpec
impl Freeze for HostSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<CommandSpec>: Freeze,
PhantomData<MenuSpec>: Freeze,
PhantomData<TreeSpec>: Freeze,
PhantomData<GroupSpec>: Freeze,
PhantomData<String>: Freeze,
PhantomData<WidgetSpec>: Freeze,
PhantomData<DialogSpec>: Freeze,
PhantomData<ToastSpec>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for HostSpec
impl RefUnwindSafe for HostSpec
impl Send for HostSpec
impl Sync for HostSpec
impl Unpin for HostSpec
impl UnsafeUnpin for HostSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<CommandSpec>: UnsafeUnpin,
PhantomData<MenuSpec>: UnsafeUnpin,
PhantomData<TreeSpec>: UnsafeUnpin,
PhantomData<GroupSpec>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<WidgetSpec>: UnsafeUnpin,
PhantomData<DialogSpec>: UnsafeUnpin,
PhantomData<ToastSpec>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for HostSpecwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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