pub struct PromptReferenceData {
pub name: String,
pub title: Option<String>,
}
Expand description
Data for prompt reference (excluding the type field)
Fields§
§name: String
The name of the prompt
title: Option<String>
Human-readable title
Trait Implementations§
Source§impl Clone for PromptReferenceData
impl Clone for PromptReferenceData
Source§fn clone(&self) -> PromptReferenceData
fn clone(&self) -> PromptReferenceData
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 Debug for PromptReferenceData
impl Debug for PromptReferenceData
Source§impl<'de> Deserialize<'de> for PromptReferenceData
impl<'de> Deserialize<'de> for PromptReferenceData
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 PartialEq for PromptReferenceData
impl PartialEq for PromptReferenceData
Source§impl Serialize for PromptReferenceData
impl Serialize for PromptReferenceData
impl StructuralPartialEq for PromptReferenceData
Auto Trait Implementations§
impl Freeze for PromptReferenceData
impl RefUnwindSafe for PromptReferenceData
impl Send for PromptReferenceData
impl Sync for PromptReferenceData
impl Unpin for PromptReferenceData
impl UnwindSafe for PromptReferenceData
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