pub struct StatusBarEntryDTO {Show 13 fields
pub EntryIdentifier: String,
pub ItemIdentifier: String,
pub ExtensionIdentifier: String,
pub Name: Option<String>,
pub Text: String,
pub Tooltip: Option<Value>,
pub HasTooltipProvider: bool,
pub Command: Option<Value>,
pub Color: Option<Value>,
pub BackgroundColor: Option<Value>,
pub IsAlignedLeft: bool,
pub Priority: Option<f64>,
pub AccessibilityInformation: Option<Value>,
}Expand description
A serializable struct that represents the complete state of a single status
bar item, analogous to vscode.StatusBarItem.
This DTO is sent from the Cocoon sidecar to the Mountain host whenever
an extension creates or updates a status bar item, providing the host with
all the information needed to render it in the UI.
Fields§
§EntryIdentifier: StringAn internal, host-generated unique ID for this entry instance.
ItemIdentifier: StringThe identifier of the status bar item, as provided by the extension.
ExtensionIdentifier: StringThe identifier of the extension that owns this status bar item.
Name: Option<String>An optional name for the status bar item, used for identification.
Text: StringThe text to be displayed for this item (can include icons like
$(icon)).
Tooltip: Option<Value>The tooltip to show when hovering over the item. Can be a simple string
or a complex IMarkdownStringDTO.
HasTooltipProvider: boolA flag indicating if the extension host has a dynamic tooltip provider for this item, requiring a reverse RPC call to resolve.
Command: Option<Value>The command to execute when the item is clicked. Serialized
CommandDTO.
Color: Option<Value>The foreground color for this item. Serialized string | ThemeColor.
BackgroundColor: Option<Value>The background color for this item. Serialized ThemeColor.
IsAlignedLeft: boolIf true, the item is aligned to the left of the status bar.
Priority: Option<f64>The priority of this item. Higher numbers are shown more to the left (for left-aligned items) or more to the right (for right-aligned items).
AccessibilityInformation: Option<Value>Accessibility information for screen readers. Serialized
AccessibilityInformation.
Trait Implementations§
Source§impl Clone for StatusBarEntryDTO
impl Clone for StatusBarEntryDTO
Source§fn clone(&self) -> StatusBarEntryDTO
fn clone(&self) -> StatusBarEntryDTO
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatusBarEntryDTO
impl Debug for StatusBarEntryDTO
Source§impl<'de> Deserialize<'de> for StatusBarEntryDTO
impl<'de> Deserialize<'de> for StatusBarEntryDTO
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>,
Auto Trait Implementations§
impl Freeze for StatusBarEntryDTO
impl RefUnwindSafe for StatusBarEntryDTO
impl Send for StatusBarEntryDTO
impl Sync for StatusBarEntryDTO
impl Unpin for StatusBarEntryDTO
impl UnsafeUnpin for StatusBarEntryDTO
impl UnwindSafe for StatusBarEntryDTO
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§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>
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>
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