pub struct PanelCommand {
pub title: StrKey,
pub description: StrKey,
pub panel: String,
pub panel_title: String,
}Expand description
A command derived from a panel (<panel>.focus, <panel>.toggle):
its title and description are shared texts with a { $panel }
placeholder, filled with the panel’s title in the interface’s
language, so a catalogue translates them once for every panel. A
translation under the command’s own keys still wins.
Fields§
§title: StrKey§description: StrKey§panel: StringThe panel’s id.
panel_title: StringThe panel’s English title.
Trait Implementations§
Source§impl Clone for PanelCommand
impl Clone for PanelCommand
Source§fn clone(&self) -> PanelCommand
fn clone(&self) -> PanelCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PanelCommand
impl Debug for PanelCommand
Source§impl PartialEq for PanelCommand
impl PartialEq for PanelCommand
impl StructuralPartialEq for PanelCommand
Auto Trait Implementations§
impl Freeze for PanelCommand
impl RefUnwindSafe for PanelCommand
impl Send for PanelCommand
impl Sync for PanelCommand
impl Unpin for PanelCommand
impl UnsafeUnpin for PanelCommand
impl UnwindSafe for PanelCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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