#[non_exhaustive]pub enum CursorAnchor {
UserMessage(CursorMessageAnchor),
AgentMessage(CursorMessageAnchor),
AgentThought(CursorMessageAnchor),
SessionMessage(CursorMessageAnchor),
ToolCall(CursorToolCallAnchor),
Compaction(CursorCompactionAnchor),
Other(OtherCursorAnchor),
}unstable_session_cursors only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Where a session cursor is, relative to an entity the Client holds.
The anchor names the entity by its type and ID, and position says on which
side of that entity the cursor is. A known type with a malformed payload is
an error. It does not fall back to the unknown-type variant.
See the Session Cursors RFD.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UserMessage(CursorMessageAnchor)
The cursor is next to a user message.
AgentMessage(CursorMessageAnchor)
The cursor is next to an agent message.
AgentThought(CursorMessageAnchor)
The cursor is next to an agent thought.
SessionMessage(CursorMessageAnchor)
The cursor is next to a session-directed message.
ToolCall(CursorToolCallAnchor)
The cursor is next to a tool call.
Compaction(CursorCompactionAnchor)
The cursor is next to a compaction.
Other(OtherCursorAnchor)
Custom or future anchor type.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
A Client that does not recognize the type cannot place the cursor and MUST NOT guess a place for it.
Trait Implementations§
Source§impl Clone for CursorAnchor
impl Clone for CursorAnchor
Source§fn clone(&self) -> CursorAnchor
fn clone(&self) -> CursorAnchor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CursorAnchor
impl Debug for CursorAnchor
Source§impl<'de> Deserialize<'de> for CursorAnchor
impl<'de> Deserialize<'de> for CursorAnchor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CursorAnchor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CursorAnchor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CursorAnchor
Source§impl JsonSchema for CursorAnchor
impl JsonSchema for CursorAnchor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CursorAnchor
impl PartialEq for CursorAnchor
Source§impl Serialize for CursorAnchor
impl Serialize for CursorAnchor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CursorAnchor
Auto Trait Implementations§
impl Forget for CursorAnchor
impl Freeze for CursorAnchor
impl Move for CursorAnchor
impl RefUnwindSafe for CursorAnchor
impl Send for CursorAnchor
impl Sync for CursorAnchor
impl Unpin for CursorAnchor
impl UnsafeUnpin for CursorAnchor
impl UnwindSafe for CursorAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.