Struct tendermint_rpc::Url
source · pub struct Url { /* private fields */ }
Expand description
A uniform resource locator (URL), with support for only those schemes/protocols supported by Tendermint RPC clients.
Re-implements relevant parts of url::Url
’s interface with convenience
mechanisms for transformation to/from other types.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Url
impl<'de> Deserialize<'de> for Url
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<HttpClientUrl> for Url
impl From<HttpClientUrl> for Url
source§fn from(url: HttpClientUrl) -> Self
fn from(url: HttpClientUrl) -> Self
Converts to this type from the input type.
source§impl From<WebSocketClientUrl> for Url
impl From<WebSocketClientUrl> for Url
source§fn from(url: WebSocketClientUrl) -> Self
fn from(url: WebSocketClientUrl) -> Self
Converts to this type from the input type.
source§impl IntoClientRequest for Url
impl IntoClientRequest for Url
source§fn into_client_request(self) -> Result<Request>
fn into_client_request(self) -> Result<Request>
Convert into a
Request
that can be used for a client connection.source§impl Ord for Url
impl Ord for Url
source§impl PartialOrd for Url
impl PartialOrd for Url
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<Url> for HttpClientUrl
impl TryFrom<Url> for HttpClientUrl
source§impl TryFrom<Url> for WebSocketClientUrl
impl TryFrom<Url> for WebSocketClientUrl
impl Eq for Url
impl StructuralPartialEq for Url
Auto Trait Implementations§
impl Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.