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() -> String
pub fn method_value() -> String
returns “notifications/elicitation/complete”
pub fn method_name() -> String
👎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 · Source§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 MessageFromServer
impl From<ElicitationCompleteNotification> for MessageFromServer
Source§fn from(value: ElicitationCompleteNotification) -> Self
fn from(value: ElicitationCompleteNotification) -> Self
Converts to this type from the input type.
Source§impl From<ElicitationCompleteNotification> for NotificationFromServer
impl From<ElicitationCompleteNotification> for NotificationFromServer
Source§fn from(value: ElicitationCompleteNotification) -> Self
fn from(value: ElicitationCompleteNotification) -> Self
Converts to this type from the input type.
Source§impl From<ElicitationCompleteNotification> for ServerJsonrpcNotification
impl From<ElicitationCompleteNotification> for ServerJsonrpcNotification
Source§fn from(value: ElicitationCompleteNotification) -> Self
fn from(value: ElicitationCompleteNotification) -> Self
Converts to this type from the input type.
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.
Source§impl FromMessage<ElicitationCompleteNotification> for ServerMessage
impl FromMessage<ElicitationCompleteNotification> for ServerMessage
fn from_message( message: ElicitationCompleteNotification, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl ToMessage<ServerMessage> for ElicitationCompleteNotification
impl ToMessage<ServerMessage> for ElicitationCompleteNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ServerMessage, RpcError>
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§
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