pub struct ElicitationCompleteNotification {
pub params: ElicitCompleteParams,
/* private fields */
}Expand description
An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request.
JSON schema
{
"description": "An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request.",
"type": "object",
"required": [
"jsonrpc",
"method",
"params"
],
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"method": {
"type": "string",
"const": "notifications/elicitation/complete"
},
"params": {
"type": "object",
"required": [
"elicitationId"
],
"properties": {
"elicitationId": {
"description": "The ID of the elicitation that completed.",
"type": "string"
}
}
}
}
}Fields§
§params: ElicitCompleteParamsImplementations§
Source§impl ElicitationCompleteNotification
impl ElicitationCompleteNotification
pub fn new(params: ElicitCompleteParams) -> Self
pub fn jsonrpc(&self) -> &String
pub fn method(&self) -> &String
Sourcepub fn method_value() -> &'static str
pub fn method_value() -> &'static str
returns “notifications/elicitation/complete”
pub fn method_name() -> &'static str
👎Deprecated since 0.8.0: Use
method_value() instead.Trait Implementations§
Source§impl Clone for ElicitationCompleteNotification
impl Clone for ElicitationCompleteNotification
Source§fn clone(&self) -> ElicitationCompleteNotification
fn clone(&self) -> ElicitationCompleteNotification
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<'de> Deserialize<'de> for ElicitationCompleteNotification
impl<'de> Deserialize<'de> for ElicitationCompleteNotification
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<ElicitationCompleteNotification> for ServerNotification
impl From<ElicitationCompleteNotification> for ServerNotification
Source§fn from(value: ElicitationCompleteNotification) -> Self
fn from(value: ElicitationCompleteNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElicitationCompleteNotification
impl RefUnwindSafe for ElicitationCompleteNotification
impl Send for ElicitationCompleteNotification
impl Sync for ElicitationCompleteNotification
impl Unpin for ElicitationCompleteNotification
impl UnwindSafe for ElicitationCompleteNotification
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)