SearchResultUrl
yosoi::search::SearchResultUrl
pub struct SearchResultUrl
A provider-reported destination that is safe to offer for a later Request. Parsing accepts only absolute HTTP(S) URLs and rejects embedded credentials.
Source: crates/yosoi/src/internal/engine/search/result/types.rs:9
SDK re-export: Source: crates/yosoi/src/search.rs:12
Methods
Section titled “Methods”as_request_target
Section titled “as_request_target”pub fn as_request_target(&self) -> RequestedWebTarget
Creates an independent target for explicit caller handoff to Requests.
Source: crates/yosoi/src/internal/engine/search/result/types.rs:26
as_str
Section titled “as_str”pub fn as_str(&self) -> &str
Borrows the validated URL text for as long as this value is retained.
Source: crates/yosoi/src/internal/engine/search/result/types.rs:21
pub fn parse(value: &str) -> Result<Self, WebUrlParseError>
Parses an absolute HTTP(S) destination without fetching it.
Returns [WebUrlParseError] for invalid URLs, unsupported schemes, or
embedded credentials. Validation does not establish destination trust.
Source: crates/yosoi/src/internal/engine/search/result/types.rs:16
Trait implementations
Section titled “Trait implementations”Clone
fn clone(&self) -> yosoi::search::SearchResultUrl
Source: crates/yosoi/src/internal/engine/search/result/types.rs:7
Debug
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result
Source: crates/yosoi/src/internal/engine/search/result/types.rs:38
Display
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result
Source: crates/yosoi/src/internal/engine/search/result/types.rs:32
Hash
fn hash<__H: $crate::hash::Hasher>(&self, state: &mut __H)
Source: crates/yosoi/src/internal/engine/search/result/types.rs:7
PartialEq
fn eq(&self, other: &yosoi::search::SearchResultUrl) -> bool
Source: crates/yosoi/src/internal/engine/search/result/types.rs:7
Serialize
serialize
Section titled “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:7