pub struct IdentityCursor {
pub provider: Option<String>,
pub model: Option<String>,
pub thought_level: Option<String>,
pub session: Option<String>,
pub parent: Option<String>,
}Expand description
ACP-named current identity. Omit unpublished fields.
Fields§
§provider: Option<String>§model: Option<String>§thought_level: Option<String>§session: Option<String>§parent: Option<String>Implementations§
Source§impl IdentityCursor
impl IdentityCursor
Sourcepub fn omit_unpublished(self) -> Self
pub fn omit_unpublished(self) -> Self
Drop empty / unknown placeholders so unpublished fields stay omitted.
Sourcepub fn merge_event(&self, patch: &IdentityCursor) -> Self
pub fn merge_event(&self, patch: &IdentityCursor) -> Self
Merge an event patch: missing incoming fields keep the last cursor value.
parent is the exception:
- incoming
parentequal to incomingsessionis the main agent (Claude omitsagent_id) and clears a stale subagent parent - incoming
sessionequal to the stored parent (Codex parent-session) also clears it
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for IdentityCursor
impl Clone for IdentityCursor
Source§fn clone(&self) -> IdentityCursor
fn clone(&self) -> IdentityCursor
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 IdentityCursor
impl Debug for IdentityCursor
Source§impl Default for IdentityCursor
impl Default for IdentityCursor
Source§fn default() -> IdentityCursor
fn default() -> IdentityCursor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IdentityCursor
impl<'de> Deserialize<'de> for IdentityCursor
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
impl Eq for IdentityCursor
Source§impl PartialEq for IdentityCursor
impl PartialEq for IdentityCursor
Source§impl Serialize for IdentityCursor
impl Serialize for IdentityCursor
impl StructuralPartialEq for IdentityCursor
Auto Trait Implementations§
impl Freeze for IdentityCursor
impl RefUnwindSafe for IdentityCursor
impl Send for IdentityCursor
impl Sync for IdentityCursor
impl Unpin for IdentityCursor
impl UnsafeUnpin for IdentityCursor
impl UnwindSafe for IdentityCursor
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