Struct tower_lsp::jsonrpc::RequestBuilder
source · pub struct RequestBuilder { /* private fields */ }
Expand description
A builder to construct the properties of a Request
.
To construct a RequestBuilder
, refer to Request::build
.
Implementations§
source§impl RequestBuilder
impl RequestBuilder
sourcepub fn id<I: Into<Id>>(self, id: I) -> Self
pub fn id<I: Into<Id>>(self, id: I) -> Self
Sets the id
member of the request to the given value.
If this method is not called, the resulting Request
will be assumed to be a notification.