pub struct FunctionResponseBuilder(/* private fields */);Expand description
Builder for FunctionResponse.
Implementations§
Source§impl FunctionResponseBuilder
impl FunctionResponseBuilder
pub fn id(self, value: impl Into<String>) -> Self
pub fn parts(self, value: impl Into<Vec<FunctionResponsePart>>) -> Self
pub fn will_continue(self, value: impl Into<bool>) -> Self
pub fn scheduling(self, value: impl Into<Scheduling>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> FunctionResponse
pub fn build(self) -> FunctionResponse
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for FunctionResponseBuilder
impl RefUnwindSafe for FunctionResponseBuilder
impl Send for FunctionResponseBuilder
impl Sync for FunctionResponseBuilder
impl Unpin for FunctionResponseBuilder
impl UnsafeUnpin for FunctionResponseBuilder
impl UnwindSafe for FunctionResponseBuilder
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