pub struct CommandPalette {
pub simulator_id: Option<Uuid>,
pub query: String,
}Fields§
§simulator_id: Option<Uuid>Simulator selected when the palette was opened. None when no sim was
selected (only the new command is applicable). Used so a refresh
that drops the underlying sim auto-dismisses the palette before it
can run a command against the wrong target.
query: StringTrait Implementations§
Source§impl Clone for CommandPalette
impl Clone for CommandPalette
Source§fn clone(&self) -> CommandPalette
fn clone(&self) -> CommandPalette
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandPalette
impl Debug for CommandPalette
Source§impl Default for CommandPalette
impl Default for CommandPalette
Source§fn default() -> CommandPalette
fn default() -> CommandPalette
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommandPalette
impl PartialEq for CommandPalette
impl StructuralPartialEq for CommandPalette
Auto Trait Implementations§
impl Freeze for CommandPalette
impl RefUnwindSafe for CommandPalette
impl Send for CommandPalette
impl Sync for CommandPalette
impl Unpin for CommandPalette
impl UnsafeUnpin for CommandPalette
impl UnwindSafe for CommandPalette
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