pub struct LauncherCatalogEntry {
pub id: String,
pub provider: String,
pub title: String,
pub description: String,
pub category: Option<String>,
pub icon: Option<String>,
pub tone: Option<String>,
pub arg_mode: Option<String>,
pub result_view: Option<String>,
pub destructive: bool,
pub requires_admin: bool,
}Expand description
One launcher-visible action, derived from a provider ToolSpec whose
palette overlay exposes it (or exposes it by default).
Fields§
§id: StringThe action id to pass to /v1/palette/execute. Stable across catalog
refreshes as long as the underlying tool name doesn’t change.
provider: String§title: String§description: String§category: Option<String>§icon: Option<String>§tone: Option<String>§arg_mode: Option<String>§result_view: Option<String>§destructive: bool§requires_admin: boolTrait Implementations§
Source§impl Clone for LauncherCatalogEntry
impl Clone for LauncherCatalogEntry
Source§fn clone(&self) -> LauncherCatalogEntry
fn clone(&self) -> LauncherCatalogEntry
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 LauncherCatalogEntry
impl Debug for LauncherCatalogEntry
Source§impl PartialEq for LauncherCatalogEntry
impl PartialEq for LauncherCatalogEntry
Source§fn eq(&self, other: &LauncherCatalogEntry) -> bool
fn eq(&self, other: &LauncherCatalogEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LauncherCatalogEntry
impl Serialize for LauncherCatalogEntry
impl StructuralPartialEq for LauncherCatalogEntry
Auto Trait Implementations§
impl Freeze for LauncherCatalogEntry
impl RefUnwindSafe for LauncherCatalogEntry
impl Send for LauncherCatalogEntry
impl Sync for LauncherCatalogEntry
impl Unpin for LauncherCatalogEntry
impl UnsafeUnpin for LauncherCatalogEntry
impl UnwindSafe for LauncherCatalogEntry
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,
§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>
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