pub struct Binding {Show 13 fields
pub session: Option<String>,
pub profile: Option<String>,
pub project: Option<String>,
pub role: Option<String>,
pub agent: Option<String>,
pub team: Option<String>,
pub mcp_url: Option<String>,
pub session_token: Option<String>,
pub session_id: Option<String>,
pub epoch: Option<i64>,
pub expires_at: Option<String>,
pub closed_at: Option<String>,
pub binding: Option<String>,
}Expand description
What the proxy of this conversation recorded: which profile, project and role it settled on. Advisory — a hook works without it, just with less.
Fields§
§session: Option<String>§profile: Option<String>§project: Option<String>§role: Option<String>§agent: Option<String>§team: Option<String>§mcp_url: Option<String>Endpoint the proxy of this conversation is connected to.
session_token: Option<String>The session credential. Present only while the window is open, and
only ever read by context hook: never printed, logged or passed in
argv.
session_id: Option<String>§epoch: Option<i64>Epoch to send with it. A hook uses the proxy’s epoch rather than registering, which would bump it and fence the proxy it belongs to.
expires_at: Option<String>§closed_at: Option<String>§binding: Option<String>Where the proxy got the conversation id this record is keyed by:
explicit, claude-code, antigravity, request-meta (Codex’s
_meta.threadId on the host’s own tool calls) or instance. Absent in records older
than 0.7.7. The Codex wake adapter only accepts request-meta: the
thread id must come from Codex, never from a guess.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Binding
impl<'de> Deserialize<'de> for Binding
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 Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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