pub struct ManagedSecrets { /* private fields */ }Expand description
Managed credential values. Short values are checked at the tool-argument boundary, but are not used to scrub ordinary text or payloads.
Implementations§
Source§impl Inventory
impl Inventory
Sourcepub fn read(providers: Option<&Location>) -> Inventory
pub fn read(providers: Option<&Location>) -> Inventory
Read the credentials of this profile without authenticating, refreshing, or initiating HTTP: the saved API keys and custom keys, and the tokens of the Codex CLI’s own store.
Sourcepub fn try_read(providers: Option<&Location>) -> Result<Inventory, String>
pub fn try_read(providers: Option<&Location>) -> Result<Inventory, String>
Read credentials for a boundary that must report an unavailable inventory.
Sourcepub fn read_keys(providers: Option<&Location>) -> Inventory
pub fn read_keys(providers: Option<&Location>) -> Inventory
The keys saved at providers only, for Chat: its agents keep their own sign-ins, which
artifactize does not read, while the Codex reviewer’s sign-in is in Self::read.
pub fn new(values: impl IntoIterator<Item = String>) -> Inventory
pub fn include(&mut self, value: String)
pub fn merge(&mut self, other: Inventory)
Sourcepub fn stream_with(
&self,
additional: impl IntoIterator<Item = String>,
) -> StreamRedactor
pub fn stream_with( &self, additional: impl IntoIterator<Item = String>, ) -> StreamRedactor
Include additional caller-owned secrets without taking ownership of their source.
pub fn stream(&self) -> StreamRedactor
pub fn contains(&self, text: &str) -> bool
Sourcepub fn scrub(&self, text: &str) -> String
pub fn scrub(&self, text: &str) -> String
Remove managed values and their escaped spellings in the text’s own syntax (for example, JSON or URL escapes), not alternate encodings such as Base64.
pub fn diagnostic(&self, text: &str, max_chars: usize) -> String
Sourcepub fn scrub_json(&self, value: &mut Value) -> bool
pub fn scrub_json(&self, value: &mut Value) -> bool
Scrub string values and object keys before an external JSON payload crosses a boundary.
Trait Implementations§
impl Eq for Inventory
impl StructuralPartialEq for Inventory
Auto Trait Implementations§
impl Forget for Inventory
impl Freeze for Inventory
impl Move for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventorywhere
RawVecInner: Send,
impl Sync for Inventorywhere
RawVecInner: Sync,
impl Unpin for Inventory
impl UnsafeUnpin for Inventory
impl UnwindSafe for Inventorywhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.