pub enum PromptTemplateEntry {
Text {
content: String,
},
Builtin {
builtin: PromptBuiltin,
},
Slot {
slot: PromptSlot,
},
}Variants§
Implementations§
Source§impl PromptTemplateEntry
impl PromptTemplateEntry
pub fn text(content: impl Into<String>) -> PromptTemplateEntry
pub fn builtin(builtin: PromptBuiltin) -> PromptTemplateEntry
pub fn slot(slot: PromptSlot) -> PromptTemplateEntry
Trait Implementations§
Source§impl Clone for PromptTemplateEntry
impl Clone for PromptTemplateEntry
Source§fn clone(&self) -> PromptTemplateEntry
fn clone(&self) -> PromptTemplateEntry
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 PromptTemplateEntry
impl Debug for PromptTemplateEntry
Source§impl<'de> Deserialize<'de> for PromptTemplateEntry
impl<'de> Deserialize<'de> for PromptTemplateEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptTemplateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptTemplateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PromptTemplateEntry
Source§impl Hash for PromptTemplateEntry
impl Hash for PromptTemplateEntry
Source§impl PartialEq for PromptTemplateEntry
impl PartialEq for PromptTemplateEntry
Source§fn eq(&self, other: &PromptTemplateEntry) -> bool
fn eq(&self, other: &PromptTemplateEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptTemplateEntry
impl Serialize for PromptTemplateEntry
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 PromptTemplateEntry
Auto Trait Implementations§
impl Freeze for PromptTemplateEntry
impl RefUnwindSafe for PromptTemplateEntry
impl Send for PromptTemplateEntry
impl Sync for PromptTemplateEntry
impl Unpin for PromptTemplateEntry
impl UnsafeUnpin for PromptTemplateEntry
impl UnwindSafe for PromptTemplateEntry
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