pub enum ServiceEndpoint {
One(Url),
Set(OrderedSet<Url>),
Map(IndexMap<String, OrderedSet<Url>>),
}
Expand description
A single URL, set, or map of endpoints specified in a Service
.
Variants§
Trait Implementations§
source§impl Clone for ServiceEndpoint
impl Clone for ServiceEndpoint
source§fn clone(&self) -> ServiceEndpoint
fn clone(&self) -> ServiceEndpoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServiceEndpoint
impl Debug for ServiceEndpoint
source§impl<'de> Deserialize<'de> for ServiceEndpoint
impl<'de> Deserialize<'de> for ServiceEndpoint
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 Display for ServiceEndpoint
impl Display for ServiceEndpoint
source§impl From<IndexMap<String, OrderedSet<Url>>> for ServiceEndpoint
impl From<IndexMap<String, OrderedSet<Url>>> for ServiceEndpoint
source§impl From<OrderedSet<Url>> for ServiceEndpoint
impl From<OrderedSet<Url>> for ServiceEndpoint
source§fn from(set: OrderedSet<Url>) -> Self
fn from(set: OrderedSet<Url>) -> Self
Converts to this type from the input type.
source§impl From<Url> for ServiceEndpoint
impl From<Url> for ServiceEndpoint
source§impl PartialEq for ServiceEndpoint
impl PartialEq for ServiceEndpoint
source§fn eq(&self, other: &ServiceEndpoint) -> bool
fn eq(&self, other: &ServiceEndpoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServiceEndpoint
impl Serialize for ServiceEndpoint
impl Eq for ServiceEndpoint
impl StructuralPartialEq for ServiceEndpoint
Auto Trait Implementations§
impl RefUnwindSafe for ServiceEndpoint
impl Send for ServiceEndpoint
impl Sync for ServiceEndpoint
impl Unpin for ServiceEndpoint
impl UnwindSafe for ServiceEndpoint
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromJson for Twhere
T: for<'de> Deserialize<'de>,
source§fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
fn from_json(json: &(impl AsRef<str> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from a string of JSON text.source§fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
fn from_json_slice(json: &(impl AsRef<[u8]> + ?Sized)) -> Result<Self, Error>
Deserialize
Self
from bytes of JSON text.source§fn from_json_value(json: Value) -> Result<Self, Error>
fn from_json_value(json: Value) -> Result<Self, Error>
Deserialize
Self
from a serde_json::Value
.source§impl<T> ToJson for Twhere
T: Serialize,
impl<T> ToJson for Twhere
T: Serialize,
source§fn to_json_value(&self) -> Result<Value, Error>
fn to_json_value(&self) -> Result<Value, Error>
Serialize
self
as a serde_json::Value
.