Skip to content
YosoiDocs

ProviderResult

yosoi::search::ProviderResult

pub struct ProviderResult

One provider slot, kept in authored Policy order even when work completes in another order.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:191

SDK re-export: Source: crates/yosoi/src/search.rs:9

pub fn attempts(&self) -> &[yosoi::search::RequestAttemptSummary]

Borrows underlying acquisition summaries, including recovery Request attempts.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:261

pub const fn charge(&self) -> &yosoi::search::ProviderCharge

Borrows reported monetary charge facts; unknown charges are not zero charges.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:271

pub const fn identity(&self) -> yosoi::search::ProviderIdentity

Returns the recorded provider and adapter identities without response content.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:239

pub const fn outcome(&self) -> &yosoi::search::ProviderOutcome

Borrows the terminal provider interpretation; acquisition success alone is insufficient.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:266

pub const fn profile(&self) -> yosoi::search::SearchProfileFacts

Returns route-selection and effective-policy facts for this slot.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:244

pub const fn provider(&self) -> yosoi::policy::search::Provider

Returns the provider selected for this authored policy slot.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:234

pub fn recovery_query(&self) -> Option<&str>

Borrows the shorter query used for off-query recovery, when attempted.

This may contain user query content and should not be logged as a diagnostic.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:256

pub const fn request_id(&self) -> Option<yosoi::request::RequestId>

Returns the underlying Request identity, or None if no Request started.

Source: crates/yosoi/src/internal/engine/search/outcome.rs:249

Debug
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result

Source: crates/yosoi/src/internal/engine/search/outcome.rs:277