pub struct ReasoningMessageBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'a, S: State> ReasoningMessageBuilder<'a, S>
impl<'a, S: State> ReasoningMessageBuilder<'a, S>
Sourcepub fn build(self) -> ReasoningMessage<'a>where
S: IsComplete,
pub fn build(self) -> ReasoningMessage<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn content(
self,
value: Cow<'a, str>,
) -> ReasoningMessageBuilder<'a, SetContent<S>>where
S::Content: IsUnset,
pub fn content(
self,
value: Cow<'a, str>,
) -> ReasoningMessageBuilder<'a, SetContent<S>>where
S::Content: IsUnset,
Required.
Auto Trait Implementations§
impl<'a, S> Freeze for ReasoningMessageBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ReasoningMessageBuilder<'a, S>
impl<'a, S> Send for ReasoningMessageBuilder<'a, S>
impl<'a, S> Sync for ReasoningMessageBuilder<'a, S>
impl<'a, S> Unpin for ReasoningMessageBuilder<'a, S>
impl<'a, S> UnwindSafe for ReasoningMessageBuilder<'a, S>
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