pub struct SetLevelRequest {
pub params: SetLevelRequestParams,
/* private fields */
}
Expand description
A request from the client to the server, to enable or adjust logging.
JSON schema
{
"description": "A request from the client to the server, to enable or adjust logging.",
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"method": {
"type": "string",
"const": "logging/setLevel"
},
"params": {
"type": "object",
"required": [
"level"
],
"properties": {
"level": {
"description": "The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message.",
"$ref": "#/definitions/LoggingLevel"
}
}
}
}
}
Fields§
§params: SetLevelRequestParams
Implementations§
Trait Implementations§
Source§impl Clone for SetLevelRequest
impl Clone for SetLevelRequest
Source§fn clone(&self) -> SetLevelRequest
fn clone(&self) -> SetLevelRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetLevelRequest
impl Debug for SetLevelRequest
Source§impl<'de> Deserialize<'de> for SetLevelRequest
impl<'de> Deserialize<'de> for SetLevelRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SetLevelRequest> for ClientRequest
impl From<SetLevelRequest> for ClientRequest
Source§fn from(value: SetLevelRequest) -> Self
fn from(value: SetLevelRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetLevelRequest> for MessageFromClient
impl From<SetLevelRequest> for MessageFromClient
Source§fn from(value: SetLevelRequest) -> Self
fn from(value: SetLevelRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetLevelRequest> for RequestFromClient
impl From<SetLevelRequest> for RequestFromClient
Source§fn from(value: SetLevelRequest) -> Self
fn from(value: SetLevelRequest) -> Self
Converts to this type from the input type.
Source§impl FromMessage<SetLevelRequest> for ClientMessage
impl FromMessage<SetLevelRequest> for ClientMessage
fn from_message( message: SetLevelRequest, request_id: Option<RequestId>, ) -> Result<Self, JsonrpcErrorError>
Source§impl Serialize for SetLevelRequest
impl Serialize for SetLevelRequest
Source§impl ToMessage<ClientMessage> for SetLevelRequest
impl ToMessage<ClientMessage> for SetLevelRequest
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ClientMessage, JsonrpcErrorError>
Source§impl TryFrom<RequestFromClient> for SetLevelRequest
impl TryFrom<RequestFromClient> for SetLevelRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SetLevelRequest
impl RefUnwindSafe for SetLevelRequest
impl Send for SetLevelRequest
impl Sync for SetLevelRequest
impl Unpin for SetLevelRequest
impl UnwindSafe for SetLevelRequest
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
Mutably borrows from an owned value. Read more