pub struct Activity { /* private fields */ }Expand description
Represents an activity within a session (e.g. a plan being generated, a message, or a progress update).
Field shape matches the real v1alpha Jules API Activity resource (verified against the
live API’s GET /v1alpha/{session}/activities response on 2026-08-08). Only the
planGenerated activity kind was observed live; other kinds (e.g. messages, progress
updates, completion events) are UNVERIFIED and preserved via extra rather than dropped, so
no activity data is silently lost for kinds this model doesn’t explicitly know about yet.
Implementations§
Source§impl Activity
impl Activity
Sourcepub fn builder() -> ActivityBuilder
pub fn builder() -> ActivityBuilder
Creates a new ActivityBuilder to construct an Activity.
Sourcepub fn create_time(&self) -> Option<&str>
pub fn create_time(&self) -> Option<&str>
Returns the activity’s creation timestamp (RFC 3339), if configured.
Sourcepub fn originator(&self) -> Option<&str>
pub fn originator(&self) -> Option<&str>
Returns who/what originated the activity (e.g. AGENT, USER), if configured.
Sourcepub fn plan_generated(&self) -> Option<&PlanGenerated>
pub fn plan_generated(&self) -> Option<&PlanGenerated>
Returns the planGenerated detail, if this activity is a plan-generation event.