pub struct Image<D, M> {
pub data: D,
pub mime_type: M,
}Expand description
Fields§
§data: DBase64-encoded image data
mime_type: MMIME type of the image (e.g., “image/png”, “image/jpeg”)
Trait Implementations§
Source§impl<D, M> IntoToolResponse for Image<D, M>
impl<D, M> IntoToolResponse for Image<D, M>
Source§fn into_tool_response(self) -> CallToolResult
fn into_tool_response(self) -> CallToolResult
Convert this type into a
CallToolResultAuto Trait Implementations§
impl<D, M> Freeze for Image<D, M>
impl<D, M> RefUnwindSafe for Image<D, M>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<D, M> Send for Image<D, M>
impl<D, M> Sync for Image<D, M>
impl<D, M> Unpin for Image<D, M>
impl<D, M> UnsafeUnpin for Image<D, M>where
D: UnsafeUnpin,
M: UnsafeUnpin,
impl<D, M> UnwindSafe for Image<D, M>where
D: UnwindSafe,
M: 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