pub struct PromptMessage(pub PromptRole, pub String);
Tuple Fields§
§0: PromptRole
§1: String
Trait Implementations§
Source§impl Clone for PromptMessage
impl Clone for PromptMessage
Source§fn clone(&self) -> PromptMessage
fn clone(&self) -> PromptMessage
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 PromptMessage
impl Debug for PromptMessage
Source§impl Display for PromptMessage
impl Display for PromptMessage
Source§impl From<&str> for PromptMessage
impl From<&str> for PromptMessage
Source§fn from(input: &str) -> PromptMessage
fn from(input: &str) -> PromptMessage
Converts to this type from the input type.
Source§impl From<(PromptRole, &str)> for PromptMessage
impl From<(PromptRole, &str)> for PromptMessage
Source§fn from(_: (PromptRole, &str)) -> PromptMessage
fn from(_: (PromptRole, &str)) -> PromptMessage
Converts to this type from the input type.
Source§impl From<(PromptRole, String)> for PromptMessage
impl From<(PromptRole, String)> for PromptMessage
Source§fn from(_: (PromptRole, String)) -> PromptMessage
fn from(_: (PromptRole, String)) -> PromptMessage
Converts to this type from the input type.
Source§impl From<String> for PromptMessage
impl From<String> for PromptMessage
Source§fn from(input: String) -> PromptMessage
fn from(input: String) -> PromptMessage
Converts to this type from the input type.
Source§impl FromStr for PromptMessage
impl FromStr for PromptMessage
Source§impl Hash for PromptMessage
impl Hash for PromptMessage
Source§impl Ord for PromptMessage
impl Ord for PromptMessage
Source§fn cmp(&self, other: &PromptMessage) -> Ordering
fn cmp(&self, other: &PromptMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PromptMessage
impl PartialEq for PromptMessage
Source§impl PartialOrd for PromptMessage
impl PartialOrd for PromptMessage
impl Eq for PromptMessage
impl StructuralPartialEq for PromptMessage
Auto Trait Implementations§
impl Freeze for PromptMessage
impl RefUnwindSafe for PromptMessage
impl Send for PromptMessage
impl Sync for PromptMessage
impl Unpin for PromptMessage
impl UnwindSafe for PromptMessage
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