pub struct SessionForkSource {
pub session: Uri,
pub turn_id: String,
}Expand description
Creates a new session with the specified agent provider.
If the session URI already exists, the server MUST return an error with code
-32003 (SessionAlreadyExists).
After creation, the client should subscribe to the session URI to receive state
updates. The server also broadcasts a root/sessionAdded notification to all
clients.
Fields§
§session: UriURI of the existing session to fork from
turn_id: StringTurn ID in the source session; content up to and including this turn’s response is copied
Trait Implementations§
Source§impl Clone for SessionForkSource
impl Clone for SessionForkSource
Source§fn clone(&self) -> SessionForkSource
fn clone(&self) -> SessionForkSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionForkSource
impl Debug for SessionForkSource
Source§impl<'de> Deserialize<'de> for SessionForkSource
impl<'de> Deserialize<'de> for SessionForkSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionForkSource
impl PartialEq for SessionForkSource
Source§fn eq(&self, other: &SessionForkSource) -> bool
fn eq(&self, other: &SessionForkSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionForkSource
impl Serialize for SessionForkSource
impl StructuralPartialEq for SessionForkSource
Auto Trait Implementations§
impl Freeze for SessionForkSource
impl RefUnwindSafe for SessionForkSource
impl Send for SessionForkSource
impl Sync for SessionForkSource
impl Unpin for SessionForkSource
impl UnsafeUnpin for SessionForkSource
impl UnwindSafe for SessionForkSource
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