[−][src]Struct durs_network_documents::network_endpoint::EndpointV2
Endpoint v2
Fields
api: NetworkEndpointApiAPI Name
api_version: u16API version
network_features: EndpointV2NetworkFeaturesNetwork features
api_features: ApiFeaturesAPI features
ip_v4: Option<Ipv4Addr>IPv4
ip_v6: Option<Ipv6Addr>IPv6
host: Option<String>hostname
port: u16port number
path: Option<String>Optional path
Methods
impl EndpointV2[src]
pub fn get_url(
&self,
get_protocol: bool,
supported_ip_v6: bool
) -> Option<String>[src]
&self,
get_protocol: bool,
supported_ip_v6: bool
) -> Option<String>
Generate endpoint url
pub fn from_pest_pair(pair: Pair<Rule>) -> EndpointV2[src]
Generate from pest pair
pub fn parse_from_raw(raw_endpoint: &str) -> Result<EndpointEnum, ParseError>[src]
parse from raw ascii format
Trait Implementations
impl Eq for EndpointV2[src]
impl Clone for EndpointV2[src]
fn clone(&self) -> EndpointV2[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<EndpointV2> for EndpointV2[src]
fn eq(&self, other: &EndpointV2) -> bool[src]
fn ne(&self, other: &EndpointV2) -> bool[src]
impl ToString for EndpointV2[src]
impl Hash for EndpointV2[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for EndpointV2[src]
impl Serialize for EndpointV2[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for EndpointV2[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for EndpointV2
impl Sync for EndpointV2
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,