pub struct OutputEventBody {
pub category: OutputCategory,
pub output: String,
pub group: Option<OutputGroup>,
pub variables_reference: Option<i32>,
pub source: Option<Source>,
pub line: Option<i32>,
pub column: Option<i32>,
pub data: Option<Value>,
/* private fields */
}
Fields§
§category: OutputCategory
The output category. If not specified, ‘console’ is assumed.
output: String
The output to report.
group: Option<OutputGroup>
Support for keeping an output log organized by grouping related messages.
variables_reference: Option<i32>
If an attribute ‘variablesReference’ exists and its value is > 0, the output contains objects which can be retrieved by passing ‘variablesReference’ to the ‘variables’ request. The value should be less than or equal to 2147483647 (2^31-1).
source: Option<Source>
An optional source location where the output was produced.
line: Option<i32>
An optional source location line where the output was produced.
column: Option<i32>
An optional source location column where the output was produced.
data: Option<Value>
Optional data to report. For the ‘telemetry’ category the data will be sent to telemetry, for the other categories the data is shown in JSON format.
Implementations§
Source§impl OutputEventBody
impl OutputEventBody
Sourcepub fn builder() -> OutputEventBodyBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> OutputEventBodyBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building OutputEventBody
.
On the builder, call .category(...)
(optional), .output(...)
, .group(...)
(optional), .variables_reference(...)
(optional), .source(...)
(optional), .line(...)
(optional), .column(...)
(optional), .data(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of OutputEventBody
.
Trait Implementations§
Source§impl Clone for OutputEventBody
impl Clone for OutputEventBody
Source§fn clone(&self) -> OutputEventBody
fn clone(&self) -> OutputEventBody
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 OutputEventBody
impl Debug for OutputEventBody
Source§impl<'de> Deserialize<'de> for OutputEventBody
impl<'de> Deserialize<'de> for OutputEventBody
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<OutputEventBody> for Event
impl From<OutputEventBody> for Event
Source§fn from(body: OutputEventBody) -> Self
fn from(body: OutputEventBody) -> Self
Source§impl From<OutputEventBody> for ProtocolMessageContent
impl From<OutputEventBody> for ProtocolMessageContent
Source§fn from(body: OutputEventBody) -> Self
fn from(body: OutputEventBody) -> Self
Source§impl PartialEq for OutputEventBody
impl PartialEq for OutputEventBody
Source§impl Serialize for OutputEventBody
impl Serialize for OutputEventBody
impl Eq for OutputEventBody
impl StructuralPartialEq for OutputEventBody
Auto Trait Implementations§
impl Freeze for OutputEventBody
impl RefUnwindSafe for OutputEventBody
impl Send for OutputEventBody
impl Sync for OutputEventBody
impl Unpin for OutputEventBody
impl UnwindSafe for OutputEventBody
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.