pub struct ProgressStartEventBody {
pub progress_id: String,
pub title: String,
pub request_id: Option<i32>,
pub cancellable: bool,
pub message: Option<String>,
pub percentage: Option<u8>,
/* private fields */
}
Fields§
§progress_id: String
An ID that must be used in subsequent ‘progressUpdate’ and ‘progressEnd’ events to make them refer to the same progress reporting.
IDs must be unique within a debug session.
title: String
Mandatory (short) title of the progress reporting. Shown in the UI to describe the long running operation.
request_id: Option<i32>
The request ID that this progress report is related to. If specified a debug adapter is expected to emit
progress events for the long running request until the request has been either completed or cancelled.
If the request ID is omitted, the progress report is assumed to be related to some general activity of the debug adapter.
cancellable: bool
If true, the request that reports progress may be canceled with a ‘cancel’ request.
So this property basically controls whether the client should use UX that supports cancellation.
Clients that don’t support cancellation are allowed to ignore the setting.
message: Option<String>
Optional, more detailed progress message.
percentage: Option<u8>
Optional progress percentage to display (value range: 0 to 100). If omitted no percentage will be shown.
Implementations§
Source§impl ProgressStartEventBody
impl ProgressStartEventBody
Sourcepub fn builder() -> ProgressStartEventBodyBuilder<((), (), (), (), (), ())>
pub fn builder() -> ProgressStartEventBodyBuilder<((), (), (), (), (), ())>
Create a builder for building ProgressStartEventBody
.
On the builder, call .progress_id(...)
, .title(...)
, .request_id(...)
(optional), .cancellable(...)
(optional), .message(...)
(optional), .percentage(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ProgressStartEventBody
.
Trait Implementations§
Source§impl Clone for ProgressStartEventBody
impl Clone for ProgressStartEventBody
Source§fn clone(&self) -> ProgressStartEventBody
fn clone(&self) -> ProgressStartEventBody
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProgressStartEventBody
impl Debug for ProgressStartEventBody
Source§impl<'de> Deserialize<'de> for ProgressStartEventBody
impl<'de> Deserialize<'de> for ProgressStartEventBody
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>,
Source§impl From<ProgressStartEventBody> for Event
impl From<ProgressStartEventBody> for Event
Source§fn from(body: ProgressStartEventBody) -> Self
fn from(body: ProgressStartEventBody) -> Self
Source§impl From<ProgressStartEventBody> for ProtocolMessageContent
impl From<ProgressStartEventBody> for ProtocolMessageContent
Source§fn from(body: ProgressStartEventBody) -> Self
fn from(body: ProgressStartEventBody) -> Self
Source§impl PartialEq for ProgressStartEventBody
impl PartialEq for ProgressStartEventBody
Source§fn eq(&self, other: &ProgressStartEventBody) -> bool
fn eq(&self, other: &ProgressStartEventBody) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ProgressStartEventBody
impl Serialize for ProgressStartEventBody
impl Eq for ProgressStartEventBody
impl StructuralPartialEq for ProgressStartEventBody
Auto Trait Implementations§
impl Freeze for ProgressStartEventBody
impl RefUnwindSafe for ProgressStartEventBody
impl Send for ProgressStartEventBody
impl Sync for ProgressStartEventBody
impl Unpin for ProgressStartEventBody
impl UnwindSafe for ProgressStartEventBody
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.