pub struct PinnedToken {
pub credential: CredentialRef,
pub token: AccessToken,
}Expand description
The selected/pinned pair a runtime works with for one attempt: the
credential the broker chose and the token vended for exactly that
credential. Account-specific headers (e.g. the Codex account id) must be
derived from token, never from a second lookup.
Fields§
§credential: CredentialRef§token: AccessTokenImplementations§
Source§impl PinnedToken
impl PinnedToken
Sourcepub fn seat_fingerprint(&self) -> Option<String>
pub fn seat_fingerprint(&self) -> Option<String>
Seat fingerprint derived from THIS token’s own identity claim (Codex:
the JWT chatgpt_account_id), comparable with
AccountSummary::seat_fingerprint. None when the token carries no
account identity — callers that must spend on exactly one listed seat
treat None or a mismatch as “do not send”.
Trait Implementations§
Source§impl Clone for PinnedToken
impl Clone for PinnedToken
Auto Trait Implementations§
impl Freeze for PinnedToken
impl RefUnwindSafe for PinnedToken
impl Send for PinnedToken
impl Sync for PinnedToken
impl Unpin for PinnedToken
impl UnsafeUnpin for PinnedToken
impl UnwindSafe for PinnedToken
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