pub struct Session { /* private fields */ }Expand description
A session represents an active context for interactions with the Jules API.
Field shape matches the real v1alpha Jules API Session resource (verified against the
live API’s GET /v1alpha/sessions and GET /v1alpha/{name} responses on 2026-08-08).
Implementations§
Source§impl Session
impl Session
Sourcepub fn builder() -> SessionBuilder
pub fn builder() -> SessionBuilder
Creates a new SessionBuilder to construct a Session.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Returns the name of the session, if configured (e.g. sessions/1234567890).
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Returns the human-readable title of the session, if configured.
Sourcepub fn create_time(&self) -> Option<&str>
pub fn create_time(&self) -> Option<&str>
Returns the session’s creation timestamp (RFC 3339), if configured.
Sourcepub fn update_time(&self) -> Option<&str>
pub fn update_time(&self) -> Option<&str>
Returns the session’s last-update timestamp (RFC 3339), if configured.
Sourcepub fn state(&self) -> Option<&str>
pub fn state(&self) -> Option<&str>
Returns the session’s state (e.g. AWAITING_USER_FEEDBACK), if configured.
Sourcepub fn source_context(&self) -> Option<&SourceContext>
pub fn source_context(&self) -> Option<&SourceContext>
Returns the session’s source context, if configured.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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 StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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