pub struct ListPromptsResultResponse {
pub id: RequestId,
pub jsonrpc: JsonRpcVersion,
pub result: ListPromptsResult,
}Expand description
A successful response from the server for a ListPromptsRequestprompts/list request.
Fields§
§id: RequestId§jsonrpc: JsonRpcVersion§result: ListPromptsResultImplementations§
Source§impl ListPromptsResultResponse
impl ListPromptsResultResponse
Sourcepub fn new(
id: RequestId,
result: ListPromptsResult,
) -> ListPromptsResultResponse
pub fn new( id: RequestId, result: ListPromptsResult, ) -> ListPromptsResultResponse
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for ListPromptsResultResponse
impl Clone for ListPromptsResultResponse
Source§fn clone(&self) -> ListPromptsResultResponse
fn clone(&self) -> ListPromptsResultResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListPromptsResultResponse
impl Debug for ListPromptsResultResponse
Source§impl<'de> Deserialize<'de> for ListPromptsResultResponse
impl<'de> Deserialize<'de> for ListPromptsResultResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListPromptsResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListPromptsResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ListPromptsResultResponse
impl Serialize for ListPromptsResultResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ListPromptsResultResponse
Auto Trait Implementations§
impl Freeze for ListPromptsResultResponse
impl RefUnwindSafe for ListPromptsResultResponse
impl Send for ListPromptsResultResponse
impl Sync for ListPromptsResultResponse
impl Unpin for ListPromptsResultResponse
impl UnsafeUnpin for ListPromptsResultResponse
impl UnwindSafe for ListPromptsResultResponse
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