pub struct CurrentDateFragment;Expand description
Injects the current UTC timestamp/date/weekday as a system message.
Implementations§
Trait Implementations§
Source§impl Default for CurrentDateFragment
impl Default for CurrentDateFragment
Source§fn default() -> CurrentDateFragment
fn default() -> CurrentDateFragment
Returns the “default value” for a type. Read more
Source§impl IntoPrompt for CurrentDateFragment
impl IntoPrompt for CurrentDateFragment
Source§type Message = GenericMessage
type Message = GenericMessage
Chat message representation emitted by the prompt.
Source§fn into_prompt(self) -> Vec<Self::Message>
fn into_prompt(self) -> Vec<Self::Message>
Consume
self and return all messages in the desired order.Auto Trait Implementations§
impl Freeze for CurrentDateFragment
impl RefUnwindSafe for CurrentDateFragment
impl Send for CurrentDateFragment
impl Sync for CurrentDateFragment
impl Unpin for CurrentDateFragment
impl UnwindSafe for CurrentDateFragment
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