Skip to content
YosoiDocs

SearchHit

yosoi::search::SearchHit

pub struct SearchHit

The actual order of one accepted organic result within its provider page. Gaps remain possible when an earlier row is rejected or duplicated.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:77

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

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

Borrows the displayed address, which need not equal the validated destination.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:131

pub const fn metadata(&self) -> &yosoi::search::SearchHitMetadata

Borrows all optional provider-displayed metadata for this hit.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:151

pub const fn organic_rank(&self) -> NonZeroU16

Returns the one-based organic row rank; rejected or duplicate rows can leave gaps.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:111

pub const fn placement_index(&self) -> NonZeroU16

Returns the one-based provider-page placement, which also counts rich features.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:116

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

Provider-reported display date. It is not a verified publication date.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:141

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

Borrows the provider-reported publisher label, if present.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:136

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

Borrows the provider-displayed excerpt without fetching the destination.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:126

pub const fn thumbnail_url(&self) -> Option<&yosoi::search::SearchResultUrl>

Borrows the validated thumbnail URL; no image fetch is implied.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:146

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

Borrows the provider-displayed title, or None if unavailable.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:121

pub const fn url(&self) -> &yosoi::search::SearchResultUrl

Borrows the validated destination for an explicit later Request.

Source: crates/yosoi/src/internal/engine/search/result/types.rs:106

Clone
fn clone(&self) -> yosoi::search::SearchHit

Source: crates/yosoi/src/internal/engine/search/result/types.rs:76

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

Source: crates/yosoi/src/internal/engine/search/result/types.rs:165

PartialEq
fn eq(&self, other: &yosoi::search::SearchHit) -> bool

Source: crates/yosoi/src/internal/engine/search/result/types.rs:76

Serialize
fn serialize<__S>(&self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error> where __S: _serde::Serializer

Source: crates/yosoi/src/internal/engine/search/result/types.rs:76