pub struct PromptTemplateSection {
pub title: Option<String>,
pub entries: Vec<PromptTemplateEntry>,
}Fields§
§title: Option<String>§entries: Vec<PromptTemplateEntry>Implementations§
Source§impl PromptTemplateSection
impl PromptTemplateSection
pub fn new( title: Option<String>, entries: Vec<PromptTemplateEntry>, ) -> PromptTemplateSection
pub fn untitled(entries: Vec<PromptTemplateEntry>) -> PromptTemplateSection
pub fn titled( title: impl Into<String>, entries: Vec<PromptTemplateEntry>, ) -> PromptTemplateSection
Trait Implementations§
Source§impl Clone for PromptTemplateSection
impl Clone for PromptTemplateSection
Source§fn clone(&self) -> PromptTemplateSection
fn clone(&self) -> PromptTemplateSection
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 PromptTemplateSection
impl Debug for PromptTemplateSection
Source§impl<'de> Deserialize<'de> for PromptTemplateSection
impl<'de> Deserialize<'de> for PromptTemplateSection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptTemplateSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptTemplateSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PromptTemplateSection
Source§impl Hash for PromptTemplateSection
impl Hash for PromptTemplateSection
Source§impl PartialEq for PromptTemplateSection
impl PartialEq for PromptTemplateSection
Source§fn eq(&self, other: &PromptTemplateSection) -> bool
fn eq(&self, other: &PromptTemplateSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptTemplateSection
impl Serialize for PromptTemplateSection
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 PromptTemplateSection
Auto Trait Implementations§
impl Freeze for PromptTemplateSection
impl RefUnwindSafe for PromptTemplateSection
impl Send for PromptTemplateSection
impl Sync for PromptTemplateSection
impl Unpin for PromptTemplateSection
impl UnsafeUnpin for PromptTemplateSection
impl UnwindSafe for PromptTemplateSection
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