pub struct AcpSession {
pub session_id: String,
pub state: SessionState,
pub created_at: String,
pub last_activity_at: Option<String>,
pub metadata: HashMap<String, Value>,
pub turn_count: u32,
}Expand description
ACP Session representation
Fields§
§session_id: StringUnique session identifier
state: SessionStateCurrent session state
created_at: StringSession creation timestamp (ISO 8601)
last_activity_at: Option<String>Last activity timestamp (ISO 8601)
metadata: HashMap<String, Value>Session metadata
turn_count: u32Turn counter for prompt/response cycles
Implementations§
Source§impl AcpSession
impl AcpSession
Sourcepub fn set_state(&mut self, state: SessionState)
pub fn set_state(&mut self, state: SessionState)
Update session state
Sourcepub fn increment_turn(&mut self)
pub fn increment_turn(&mut self)
Increment turn counter
Trait Implementations§
Source§impl Clone for AcpSession
impl Clone for AcpSession
Source§fn clone(&self) -> AcpSession
fn clone(&self) -> AcpSession
Returns a duplicate of the value. Read more
1.0.0 · 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 AcpSession
impl Debug for AcpSession
Source§impl<'de> Deserialize<'de> for AcpSession
impl<'de> Deserialize<'de> for AcpSession
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
Auto Trait Implementations§
impl Freeze for AcpSession
impl RefUnwindSafe for AcpSession
impl Send for AcpSession
impl Sync for AcpSession
impl Unpin for AcpSession
impl UnwindSafe for AcpSession
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