[][src]Struct tamasfe_lsp_types::WorkDoneProgressReport

pub struct WorkDoneProgressReport {
    pub cancellable: Option<bool>,
    pub message: Option<String>,
    pub percentage: Option<u32>,
}

Fields

cancellable: Option<bool>

Controls if a cancel button should show to allow the user to cancel the long running operation. Clients that don't support cancellation are allowed to ignore the setting.

message: Option<String>

Optional, more detailed associated progress message. Contains complementary information to the title. Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". If unset, the previous progress message (if any) is still valid.

percentage: Option<u32>

Optional progress percentage to display (value 100 is considered 100%). If not provided infinite progress is assumed and clients are allowed to ignore the percentage value in subsequent in report notifications.

The value should be steadily rising. Clients are free to ignore values that are not following this rule. The value range is [0, 100]

Trait Implementations

impl Clone for WorkDoneProgressReport[src]

impl Debug for WorkDoneProgressReport[src]

impl Default for WorkDoneProgressReport[src]

impl<'de> Deserialize<'de> for WorkDoneProgressReport[src]

impl PartialEq<WorkDoneProgressReport> for WorkDoneProgressReport[src]

impl Serialize for WorkDoneProgressReport[src]

impl StructuralPartialEq for WorkDoneProgressReport[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.