pub struct CompleteResult {
pub completion: CompleteResultCompletion,
pub meta: Option<Map<String, Value>>,
}
Expand description
The server’s response to a completion/complete request
JSON schema
{
"description": "The server's response to a completion/complete request",
"type": "object",
"required": [
"completion"
],
"properties": {
"_meta": {
"description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.",
"type": "object",
"additionalProperties": {}
},
"completion": {
"type": "object",
"required": [
"values"
],
"properties": {
"hasMore": {
"description": "Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.",
"type": "boolean"
},
"total": {
"description": "The total number of completion options available. This can exceed the number of values actually sent in the response.",
"type": "integer"
},
"values": {
"description": "An array of completion values. Must not exceed 100 items.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
Fields§
§completion: CompleteResultCompletion
§meta: Option<Map<String, Value>>
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
Trait Implementations§
Source§impl Clone for CompleteResult
impl Clone for CompleteResult
Source§fn clone(&self) -> CompleteResult
fn clone(&self) -> CompleteResult
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 CompleteResult
impl Debug for CompleteResult
Source§impl<'de> Deserialize<'de> for CompleteResult
impl<'de> Deserialize<'de> for CompleteResult
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<CompleteResult> for MessageFromServer
impl From<CompleteResult> for MessageFromServer
Source§fn from(value: CompleteResult) -> Self
fn from(value: CompleteResult) -> Self
Converts to this type from the input type.
Source§impl From<CompleteResult> for ResultFromServer
impl From<CompleteResult> for ResultFromServer
Source§fn from(value: CompleteResult) -> Self
fn from(value: CompleteResult) -> Self
Converts to this type from the input type.
Source§impl From<CompleteResult> for ServerResult
impl From<CompleteResult> for ServerResult
Source§fn from(value: CompleteResult) -> Self
fn from(value: CompleteResult) -> Self
Converts to this type from the input type.
Source§impl FromMessage<CompleteResult> for ServerMessage
impl FromMessage<CompleteResult> for ServerMessage
fn from_message( message: CompleteResult, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl Serialize for CompleteResult
impl Serialize for CompleteResult
Source§impl ToMessage<ServerMessage> for CompleteResult
impl ToMessage<ServerMessage> for CompleteResult
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ServerMessage, RpcError>
Source§impl TryFrom<ResultFromServer> for CompleteResult
impl TryFrom<ResultFromServer> for CompleteResult
Auto Trait Implementations§
impl Freeze for CompleteResult
impl RefUnwindSafe for CompleteResult
impl Send for CompleteResult
impl Sync for CompleteResult
impl Unpin for CompleteResult
impl UnwindSafe for CompleteResult
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