pub struct RpEndpointHttp<F>where
F: Flavor + 'static,{
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§
Source§impl<F> Clone for RpEndpointHttp<F>
impl<F> Clone for RpEndpointHttp<F>
Source§fn clone(&self) -> RpEndpointHttp<F>
fn clone(&self) -> RpEndpointHttp<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 moreSource§impl<F> Debug for RpEndpointHttp<F>
impl<F> Debug for RpEndpointHttp<F>
Source§impl<F> Default for RpEndpointHttp<F>
impl<F> Default for RpEndpointHttp<F>
Source§fn default() -> RpEndpointHttp<F>
fn default() -> RpEndpointHttp<F>
Returns the “default value” for a type. Read more
Source§impl<F> Serialize for RpEndpointHttp<F>
impl<F> Serialize for RpEndpointHttp<F>
Source§impl<F, T> Translate<T> for RpEndpointHttp<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T> Translate<T> for RpEndpointHttp<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
Source§fn translate(
self,
diag: &mut Diagnostics,
translator: &T,
) -> Result<RpEndpointHttp<T::Target>>
fn translate( self, diag: &mut Diagnostics, translator: &T, ) -> Result<RpEndpointHttp<T::Target>>
Translate into different flavor.
type Source = F
type Out = RpEndpointHttp<<T as Translator>::Target>
Auto Trait Implementations§
impl<F> Freeze for RpEndpointHttp<F>
impl<F> RefUnwindSafe for RpEndpointHttp<F>
impl<F> !Send for RpEndpointHttp<F>
impl<F> !Sync for RpEndpointHttp<F>
impl<F> Unpin for RpEndpointHttp<F>
impl<F> UnwindSafe for RpEndpointHttp<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