Struct reproto_core::RpEndpointHttp
[−]
[src]
pub struct RpEndpointHttp<F: 'static> where
F: Flavor, { pub path: Option<RpPathSpec<F>>, pub body: Option<RpEndpointArgument<F>>, pub method: Option<RpHttpMethod>, pub accept: RpAccept, }
Fields
path: Option<RpPathSpec<F>>
Path specification.
body: Option<RpEndpointArgument<F>>
Argument that is the body of the request.
method: Option<RpHttpMethod>
HTTP method.
accept: RpAccept
Accepted media types.
Trait Implementations
impl<F: Debug + 'static> Debug for RpEndpointHttp<F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpEndpointHttp<F> where
F: Flavor,
[src]
F: Flavor,
fn clone(&self) -> RpEndpointHttp<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
impl<F: Default + 'static> Default for RpEndpointHttp<F> where
F: Flavor,
[src]
F: Flavor,
fn default() -> RpEndpointHttp<F>
[src]
Returns the "default value" for a type. Read more
impl<F: 'static, T> Translate<T> for RpEndpointHttp<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
type Source = F
type Out = RpEndpointHttp<T::Target>
fn translate(
self,
diag: &mut Diagnostics,
translator: &T
) -> Result<RpEndpointHttp<T::Target>>
[src]
self,
diag: &mut Diagnostics,
translator: &T
) -> Result<RpEndpointHttp<T::Target>>
Translate into different flavor.