[][src]Struct durs_network_documents::network_endpoint::EndpointV2

pub struct EndpointV2 {
    pub api: NetworkEndpointApi,
    pub api_version: u16,
    pub network_features: EndpointV2NetworkFeatures,
    pub api_features: ApiFeatures,
    pub ip_v4: Option<Ipv4Addr>,
    pub ip_v6: Option<Ipv6Addr>,
    pub host: Option<String>,
    pub port: u16,
    pub path: Option<String>,
}

Endpoint v2

Fields

api: NetworkEndpointApi

API Name

api_version: u16

API version

network_features: EndpointV2NetworkFeatures

Network features

api_features: ApiFeatures

API features

ip_v4: Option<Ipv4Addr>

IPv4

ip_v6: Option<Ipv6Addr>

IPv6

host: Option<String>

hostname

port: u16

port 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]

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<EndpointV2> for EndpointV2[src]

impl ToString for EndpointV2[src]

impl Hash for EndpointV2[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for EndpointV2[src]

impl Serialize for EndpointV2[src]

impl<'de> Deserialize<'de> for EndpointV2[src]

Auto Trait Implementations

impl Send for EndpointV2

impl Sync for EndpointV2

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]