pub struct RequestState(pub Option<String>);Available on crate feature
server only.Expand description
Extracts the opaque state returned by the server during the previous MRTR round.
Tuple Fields§
§0: Option<String>Trait Implementations§
Source§impl<S> FromContextPart<ToolCallContext<'_, S>> for RequestState
impl<S> FromContextPart<ToolCallContext<'_, S>> for RequestState
fn from_context_part( context: &mut ToolCallContext<'_, S>, ) -> Result<Self, ErrorData>
Auto Trait Implementations§
impl Freeze for RequestState
impl RefUnwindSafe for RequestState
impl Send for RequestState
impl Sync for RequestState
impl Unpin for RequestState
impl UnsafeUnpin for RequestState
impl UnwindSafe for RequestState
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