pub struct RpEndpointHttp1<F>where
F: Flavor + 'static,{
pub request: Option<F::Type>,
pub response: Option<F::Type>,
pub path: RpPathSpec<F>,
pub method: RpHttpMethod,
}
Expand description
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
Implementations§
Source§impl<F> RpEndpointHttp1<F>
impl<F> RpEndpointHttp1<F>
Sourcepub fn from_endpoint(endpoint: &RpEndpoint<F>) -> Option<RpEndpointHttp1<F>>
pub fn from_endpoint(endpoint: &RpEndpoint<F>) -> Option<RpEndpointHttp1<F>>
Convert the general HTTP information into HTTP/1.1 if applicable.
Trait Implementations§
Source§impl<F> Clone for RpEndpointHttp1<F>
impl<F> Clone for RpEndpointHttp1<F>
Source§fn clone(&self) -> RpEndpointHttp1<F>
fn clone(&self) -> RpEndpointHttp1<F>
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 moreAuto Trait Implementations§
impl<F> Freeze for RpEndpointHttp1<F>
impl<F> RefUnwindSafe for RpEndpointHttp1<F>
impl<F> !Send for RpEndpointHttp1<F>
impl<F> !Sync for RpEndpointHttp1<F>
impl<F> Unpin for RpEndpointHttp1<F>
impl<F> UnwindSafe for RpEndpointHttp1<F>
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