pub struct EmbeddedKey {
pub provider: String,
pub key: String,
}Expand description
An API key embedded in an encrypted site payload (§1.2 — a represented
state, not a loose string). When present, the key rides inside the
AES-256-GCM-encrypted index.html payload as a JSON object
{"html":"...","embeddedKey":{"provider":"...","key":"..."}}. The decrypt
shell extracts it and sets window.__btEmbeddedKey before the page
renders, so feedback.js’s applyEmbeddedKey can pre-load it into
sessionStorage — skipping the key-entry prompt.
The key is never baked into any shipped file as plaintext: it is inside
the ciphertext, and the base64 alphabet (A-Za-z0-9+/=) excludes _ and
-, so the fw_ / sk-ant- prefixes can never appear in the encoded
output.
Fields§
§provider: StringThe provider id: fireworks or anthropic.
key: StringThe API key (e.g. fw_... or sk-ant-...).
Trait Implementations§
Source§impl Clone for EmbeddedKey
impl Clone for EmbeddedKey
Source§fn clone(&self) -> EmbeddedKey
fn clone(&self) -> EmbeddedKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbeddedKey
impl Debug for EmbeddedKey
Auto Trait Implementations§
impl Freeze for EmbeddedKey
impl RefUnwindSafe for EmbeddedKey
impl Send for EmbeddedKey
impl Sync for EmbeddedKey
impl Unpin for EmbeddedKey
impl UnwindSafe for EmbeddedKey
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