pub struct CodexPayload {Show 20 fields
pub payload_type: Option<String>,
pub role: Option<String>,
pub content: Option<Vec<CodexContent>>,
pub name: Option<String>,
pub arguments: Option<String>,
pub call_id: Option<String>,
pub output: Option<String>,
pub message: Option<String>,
pub info: Option<Value>,
pub cwd: Option<String>,
pub approval_policy: Option<String>,
pub sandbox_policy: Option<Value>,
pub model: Option<String>,
pub effort: Option<String>,
pub summary: Option<String>,
pub id: Option<String>,
pub originator: Option<String>,
pub git: Option<CodexGitInfo>,
pub success: Option<bool>,
pub changes: Option<Value>,
}Expand description
Event-specific payload of a CodexLog.
A single flat union covering every Codex record type; each field is Option
and only the subset meaningful to the record’s payload_type is present.
Fields§
§payload_type: Option<String>Inner payload discriminator (e.g. message, function_call).
role: Option<String>Message role (user, assistant, …) for message payloads.
content: Option<Vec<CodexContent>>Message content blocks for message payloads.
name: Option<String>Function name for function-call payloads (e.g. shell, exec_command).
arguments: Option<String>Raw JSON-encoded arguments or custom-tool input.
call_id: Option<String>Correlation id linking a function call to its output.
output: Option<String>Normalized function/custom-tool output body; text blocks are flattened.
message: Option<String>Free-form message text for event-message payloads.
info: Option<Value>Token-usage / event info blob, shape depends on the event.
cwd: Option<String>Working directory recorded in session-meta / turn-context payloads.
approval_policy: Option<String>Approval policy in effect for the turn.
sandbox_policy: Option<Value>Sandbox policy blob in effect for the turn.
model: Option<String>Model name driving the turn.
effort: Option<String>Reasoning-effort setting for the turn.
summary: Option<String>Reasoning summary text, when present.
id: Option<String>Record identifier.
originator: Option<String>Originator label (which client produced the session).
git: Option<CodexGitInfo>Git repository metadata captured at session start.
success: Option<bool>Whether a patch_apply_end event reported a successful apply.
changes: Option<Value>Per-file changes of a patch_apply_end event, keyed by absolute path.
Trait Implementations§
Source§impl Clone for CodexPayload
impl Clone for CodexPayload
Source§fn clone(&self) -> CodexPayload
fn clone(&self) -> CodexPayload
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 CodexPayload
impl Debug for CodexPayload
Source§impl<'de> Deserialize<'de> for CodexPayload
impl<'de> Deserialize<'de> for CodexPayload
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>,
Auto Trait Implementations§
impl Freeze for CodexPayload
impl RefUnwindSafe for CodexPayload
impl Send for CodexPayload
impl Sync for CodexPayload
impl Unpin for CodexPayload
impl UnsafeUnpin for CodexPayload
impl UnwindSafe for CodexPayload
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more