pub trait IntoUri: Sealed {
type TryInto;
// Required method
fn into_uri(self) -> Self::TryInto;
}Expand description
A helper trait to try to convert some types into Uri.
This trait is sealed and implemented only for the most suitable types.
Unlike the similar trait in the Reqwest, this one describes a type’s representation
that implements TryInto<Uri>. This approach can pass third-party types like url::Url
directly to the http::request::Builder::uri without any wrappers.
Required Associated Types§
Sourcetype TryInto
type TryInto
Which kind of value should be converted to the Uri via TryInto<Uri>
Required Methods§
Sourcefn into_uri(self) -> Self::TryInto
fn into_uri(self) -> Self::TryInto
Converts this value into the input type for the TryInto<Uri> conversion.