Struct PromptTemplate
pub struct PromptTemplate { /* private fields */ }Implementations§
§impl PromptTemplate
impl PromptTemplate
pub fn new( name: PromptName, text: PromptText, format: PromptFormat, ) -> PromptTemplate
pub fn name(&self) -> &PromptName
pub fn text(&self) -> &PromptText
pub const fn format(&self) -> PromptFormat
Trait Implementations§
§impl Clone for PromptTemplate
impl Clone for PromptTemplate
§fn clone(&self) -> PromptTemplate
fn clone(&self) -> PromptTemplate
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 more§impl Debug for PromptTemplate
impl Debug for PromptTemplate
§impl PartialEq for PromptTemplate
impl PartialEq for PromptTemplate
impl Eq for PromptTemplate
impl StructuralPartialEq for PromptTemplate
Auto Trait Implementations§
impl Freeze for PromptTemplate
impl RefUnwindSafe for PromptTemplate
impl Send for PromptTemplate
impl Sync for PromptTemplate
impl Unpin for PromptTemplate
impl UnsafeUnpin for PromptTemplate
impl UnwindSafe for PromptTemplate
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