Struct reproto_core::RpEndpointHttp1
[−]
[src]
pub struct RpEndpointHttp1<F: 'static> where
F: Flavor, { pub request: Option<F::Type>, pub response: Option<F::Type>, pub path: RpPathSpec<F>, pub method: RpHttpMethod, }
A model that describes the endpoint as an HTTP/1.1 endpoint.
Fields
request: Option<F::Type>
response: Option<F::Type>
path: RpPathSpec<F>
method: RpHttpMethod
Methods
impl<F: 'static> RpEndpointHttp1<F> where
F: Clone + Flavor,
[src]
F: Clone + Flavor,
pub fn from_endpoint(endpoint: &RpEndpoint<F>) -> Option<RpEndpointHttp1<F>>
[src]
Convert the general HTTP information into HTTP/1.1 if applicable.
Trait Implementations
impl<F: Debug + 'static> Debug for RpEndpointHttp1<F> where
F: Flavor,
F::Type: Debug,
F::Type: Debug,
[src]
F: Flavor,
F::Type: Debug,
F::Type: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpEndpointHttp1<F> where
F: Flavor,
F::Type: Clone,
F::Type: Clone,
[src]
F: Flavor,
F::Type: Clone,
F::Type: Clone,
fn clone(&self) -> RpEndpointHttp1<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more