pub struct GetPromptResultResponse {
pub id: RequestId,
pub jsonrpc: JsonRpcVersion,
pub result: GetPromptResultResponseResult,
}Expand description
A successful response from the server for a GetPromptRequestprompts/get request.
Fields§
§id: RequestId§jsonrpc: JsonRpcVersion§result: GetPromptResultResponseResultImplementations§
Source§impl GetPromptResultResponse
impl GetPromptResultResponse
Sourcepub fn new(
id: RequestId,
result: GetPromptResultResponseResult,
) -> GetPromptResultResponse
pub fn new( id: RequestId, result: GetPromptResultResponseResult, ) -> GetPromptResultResponse
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for GetPromptResultResponse
impl Clone for GetPromptResultResponse
Source§fn clone(&self) -> GetPromptResultResponse
fn clone(&self) -> GetPromptResultResponse
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 GetPromptResultResponse
impl Debug for GetPromptResultResponse
Source§impl<'de> Deserialize<'de> for GetPromptResultResponse
impl<'de> Deserialize<'de> for GetPromptResultResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetPromptResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetPromptResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetPromptResultResponse
impl PartialEq for GetPromptResultResponse
Source§impl Serialize for GetPromptResultResponse
impl Serialize for GetPromptResultResponse
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 GetPromptResultResponse
Auto Trait Implementations§
impl Freeze for GetPromptResultResponse
impl RefUnwindSafe for GetPromptResultResponse
impl Send for GetPromptResultResponse
impl Sync for GetPromptResultResponse
impl Unpin for GetPromptResultResponse
impl UnsafeUnpin for GetPromptResultResponse
impl UnwindSafe for GetPromptResultResponse
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