pub enum BackendPrompt {
Text(String),
Messages(Vec<Message>),
}Expand description
The prompt content for the backend.
Variants§
Trait Implementations§
Source§impl Clone for BackendPrompt
impl Clone for BackendPrompt
Source§fn clone(&self) -> BackendPrompt
fn clone(&self) -> BackendPrompt
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 BackendPrompt
impl Debug for BackendPrompt
Source§impl<'de> Deserialize<'de> for BackendPrompt
impl<'de> Deserialize<'de> for BackendPrompt
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
Auto Trait Implementations§
impl Freeze for BackendPrompt
impl RefUnwindSafe for BackendPrompt
impl Send for BackendPrompt
impl Sync for BackendPrompt
impl Unpin for BackendPrompt
impl UnwindSafe for BackendPrompt
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