pub struct ToolResultBlockBuilder(/* private fields */);Expand description
Builder for ToolResultBlock.
Implementations§
Source§impl ToolResultBlockBuilder
impl ToolResultBlockBuilder
pub fn toolset_name(self, value: impl Into<String>) -> Self
pub fn content(self, value: impl Into<ToolResultContent>) -> Self
pub fn is_error(self, value: impl Into<bool>) -> Self
pub fn cache_control(self, value: impl Into<CacheControl>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> ToolResultBlock
pub fn build(self) -> ToolResultBlock
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for ToolResultBlockBuilder
impl RefUnwindSafe for ToolResultBlockBuilder
impl Send for ToolResultBlockBuilder
impl Sync for ToolResultBlockBuilder
impl Unpin for ToolResultBlockBuilder
impl UnsafeUnpin for ToolResultBlockBuilder
impl UnwindSafe for ToolResultBlockBuilder
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