pub struct LogMessage {
    pub typ: MessageType,
    pub task: Option<TaskId>,
    pub origin_id: Option<String>,
    pub message: String,
}
Expand description

The log message notification is sent from the server to the client to ask the client to log a particular message.

A build/logMessage notification is similar to LSP’s window/logMessage, except for a few additions like id and originId.

The originId field helps clients know which request originated a notification in case several requests are handled by the client at the same time. It will only be populated if the client defined it in the request that triggered this notification.

Fields

typ: MessageType

The message type. See {@link MessageType}.

task: Option<TaskId>

The task id if any.

origin_id: Option<String>

The request id that originated this notification.

message: String

The actual message.

Implementations

Send info message.

Send log message.

Send warn message.

Send error message.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.