Skip to main content

SecretString

Type Alias SecretString 

Source
pub type SecretString = SecretBox<str>;
Expand description

Re-exported secrecy::SecretString. Activated by the secrecy feature, which bus-nats, llm-anthropic, llm-openai, llm-genai, memory-neo4j, and memory-qdrant auto-enable.

Downstream consumers that interact with any klieo crate accepting credentials can use klieo::SecretString; instead of pinning the secrecy crate directly โ€” preventing version skew like the 0.8 โ†” 0.10 incompatibility surfaced in adoption eval Plan 02. Secret string type.

This is a type alias for SecretBox<str> which supports some helpful trait impls.

Notably it has a From<String> impl which is the preferred method for construction.

Aliased Typeยง

pub struct SecretString { /* private fields */ }