#[non_exhaustive]pub struct V1SessionCapabilityParts {
pub session_capabilities: SessionCapabilities,
pub prompt_capabilities: PromptCapabilities,
pub load_session: bool,
pub mcp_capabilities: McpCapabilities,
}Available on crate feature
unstable_protocol_v2 only.Expand description
The v1 capability fields represented by v2 SessionCapabilities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_capabilities: SessionCapabilitiesSession-specific v1 capabilities.
prompt_capabilities: PromptCapabilitiesPrompt capabilities for v1 session/prompt requests.
load_session: boolWhether v1 session/load is supported.
mcp_capabilities: McpCapabilitiesMCP capabilities for v1 session lifecycle requests.
Trait Implementations§
Source§impl Clone for V1SessionCapabilityParts
impl Clone for V1SessionCapabilityParts
Source§fn clone(&self) -> V1SessionCapabilityParts
fn clone(&self) -> V1SessionCapabilityParts
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 V1SessionCapabilityParts
impl Debug for V1SessionCapabilityParts
impl Eq for V1SessionCapabilityParts
Source§impl PartialEq for V1SessionCapabilityParts
impl PartialEq for V1SessionCapabilityParts
Source§fn eq(&self, other: &V1SessionCapabilityParts) -> bool
fn eq(&self, other: &V1SessionCapabilityParts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for V1SessionCapabilityParts
Auto Trait Implementations§
impl Freeze for V1SessionCapabilityParts
impl RefUnwindSafe for V1SessionCapabilityParts
impl Send for V1SessionCapabilityParts
impl Sync for V1SessionCapabilityParts
impl Unpin for V1SessionCapabilityParts
impl UnsafeUnpin for V1SessionCapabilityParts
impl UnwindSafe for V1SessionCapabilityParts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.