pub struct Text<T>(pub T);Expand description
A text response.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> IntoContent for Text<T>where
T: Display,
impl<T> IntoContent for Text<T>where
T: Display,
Source§fn into_content(self) -> Content
fn into_content(self) -> Content
Consumes the object and converts it into a content.
Auto Trait Implementations§
impl<T> Freeze for Text<T>where
T: Freeze,
impl<T> RefUnwindSafe for Text<T>where
T: RefUnwindSafe,
impl<T> Send for Text<T>where
T: Send,
impl<T> Sync for Text<T>where
T: Sync,
impl<T> Unpin for Text<T>where
T: Unpin,
impl<T> UnsafeUnpin for Text<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Text<T>where
T: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoContents for Twhere
T: IntoContent,
impl<T> IntoContents for Twhere
T: IntoContent,
Source§fn into_contents(self) -> Vec<Content>
fn into_contents(self) -> Vec<Content>
Consumes the object and converts it into multiple contents.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoToolResponse for Twhere
T: IntoContents,
impl<T> IntoToolResponse for Twhere
T: IntoContents,
Source§fn output_schema() -> Option<Schema>
fn output_schema() -> Option<Schema>
Returns the output schema of the tool response, if any.
Source§fn into_tool_response(self) -> ToolsCallResponse
fn into_tool_response(self) -> ToolsCallResponse
Consumes the object and converts it into a tool response.