pub struct SetLevelRequest {
pub id: RequestId,
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": [
"id",
"jsonrpc",
"method",
"params"
],
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "logging/setLevel"
},
"params": {
"$ref": "#/$defs/SetLevelRequestParams"
}
}
}Fields§
§id: RequestId§params: SetLevelRequestParamsImplementations§
Source§impl SetLevelRequest
impl SetLevelRequest
pub fn new(id: RequestId, params: SetLevelRequestParams) -> Self
pub fn jsonrpc(&self) -> &String
pub fn method(&self) -> &String
Sourcepub fn method_value() -> &'static str
pub fn method_value() -> &'static str
returns “logging/setLevel”
pub fn method_name() -> &'static str
👎Deprecated since 0.8.0: Use
method_value() instead.Trait Implementations§
Source§impl Clone for SetLevelRequest
impl Clone for SetLevelRequest
Source§fn clone(&self) -> SetLevelRequest
fn clone(&self) -> SetLevelRequest
Returns a duplicate of the value. Read more
1.0.0§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.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)