pub struct Resolved {Show 14 fields
pub mcp_url: String,
pub token: String,
pub source: Source,
pub profile: Option<String>,
pub expected: Option<(String, String)>,
pub tokens_file: Option<PathBuf>,
pub token_key: Option<String>,
pub project: Option<String>,
pub channel: Option<String>,
pub project_root: Option<PathBuf>,
pub session: Option<String>,
pub token_origin: Option<Origin>,
pub url_origin: Option<Origin>,
pub warnings: Vec<String>,
}Expand description
The answer. token is the secret and the only field Self::redacted
hides.
Fields§
§mcp_url: String§token: String§source: Source§profile: Option<String>§expected: Option<(String, String)>(team, agent) the credential is expected to be. Only from a
profile; explicit credentials promise nothing.
tokens_file: Option<PathBuf>§token_key: Option<String>§project: Option<String>§channel: Option<String>§project_root: Option<PathBuf>§session: Option<String>§token_origin: Option<Origin>Where the explicit token came from, when source is
Source::Explicit and the caller said.
url_origin: Option<Origin>Where the URL came from when it was explicit.
warnings: Vec<String>Configuration the winning rule silently outranked — an installed default profile shadowed by leftover environment exports, say. Each entry is one printable sentence with no secret in it; every entry point shows them on stderr (or the log), never on MCP stdout.
Implementations§
Source§impl Resolved
impl Resolved
Sourcepub fn credential_provenance(&self) -> String
pub fn credential_provenance(&self) -> String
Where the credential came from, in words a person debugging an upgrade can act on. Never contains the secret.
Sourcepub fn url_provenance(&self) -> String
pub fn url_provenance(&self) -> String
Where the endpoint came from. The URL itself is not a secret; what matters is whether the profile’s endpoint or an override is in use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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<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