pub struct RunSession {
pub provider: String,
pub session: String,
pub turn: Option<String>,
pub provenance: Option<Box<RunProvenance>>,
}Expand description
The external runtime session a run belongs to, named by the provider’s own identifiers.
Identifiers are opaque to DPM and are never a place for secrets: they appear in shared views.
Fields§
§provider: StringLowercase provider word such as codex or claude; DPM keeps no table of providers.
session: StringThe provider’s session or thread identifier.
turn: Option<String>The provider’s turn or request identifier within the session, if it has one.
provenance: Option<Box<RunProvenance>>The runtime’s identity and configuration as the recorder attests them when the run starts. Fixed for the life of the run and compared when a start is resent. Boxed so that a start request without it stays small.
Implementations§
Source§impl RunSession
impl RunSession
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Check the provider word and the opaque identifiers.
Trait Implementations§
Source§impl Clone for RunSession
impl Clone for RunSession
Source§impl Debug for RunSession
impl Debug for RunSession
Source§impl<'de> Deserialize<'de> for RunSession
impl<'de> Deserialize<'de> for RunSession
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 RunSession
Source§impl PartialEq for RunSession
impl PartialEq for RunSession
Source§impl Serialize for RunSession
impl Serialize for RunSession
impl StructuralPartialEq for RunSession
Auto Trait Implementations§
impl Freeze for RunSession
impl RefUnwindSafe for RunSession
impl Send for RunSession
impl Sync for RunSession
impl Unpin for RunSession
impl UnsafeUnpin for RunSession
impl UnwindSafe for RunSession
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