pub struct SessionIdentityV1 {
pub session_id: SessionId,
pub task_id: TaskId,
pub run_id: RunId,
pub trace_id: TraceId,
pub parent_task_id: Option<TaskId>,
pub agent_id: AgentId,
pub project_id: ProjectId,
pub workspace_id: Option<WorkspaceId>,
pub tenant_id: Option<TenantId>,
pub project_root_ref: ProtocolReference,
pub project_revision_ref: Option<ProtocolReference>,
pub created_at: UtcTimestamp,
}Expand description
Immutable identity established when a Context SDK session is created.
Fields§
§session_id: SessionId§task_id: TaskId§run_id: RunId§trace_id: TraceId§parent_task_id: Option<TaskId>§agent_id: AgentId§project_id: ProjectId§workspace_id: Option<WorkspaceId>§tenant_id: Option<TenantId>§project_root_ref: ProtocolReference§project_revision_ref: Option<ProtocolReference>§created_at: UtcTimestampImplementations§
Source§impl SessionIdentityV1
impl SessionIdentityV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate the identity invariants shared by direct Rust construction and decoding.
Trait Implementations§
Source§impl Clone for SessionIdentityV1
impl Clone for SessionIdentityV1
Source§impl Debug for SessionIdentityV1
impl Debug for SessionIdentityV1
Source§impl<'de> Deserialize<'de> for SessionIdentityV1
impl<'de> Deserialize<'de> for SessionIdentityV1
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 SessionIdentityV1
Source§impl PartialEq for SessionIdentityV1
impl PartialEq for SessionIdentityV1
Source§impl Serialize for SessionIdentityV1
impl Serialize for SessionIdentityV1
impl StructuralPartialEq for SessionIdentityV1
Auto Trait Implementations§
impl Freeze for SessionIdentityV1
impl RefUnwindSafe for SessionIdentityV1
impl Send for SessionIdentityV1
impl Sync for SessionIdentityV1
impl Unpin for SessionIdentityV1
impl UnsafeUnpin for SessionIdentityV1
impl UnwindSafe for SessionIdentityV1
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