pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new( message: ItemStruct, method_name: Ident, config: &HttpRule, ) -> Request
pub fn filter_fields(&self, req: &RequestFields) -> Fields
pub fn path(&self) -> &RequestFields
pub fn body(&self) -> &RequestFields
pub fn query(&self) -> &RequestFields
pub fn has_sub(&self, req: &RequestFields) -> bool
pub fn sub_name(&self, req: &RequestFields) -> Option<Ident>
pub fn generate_structs(&self) -> TokenStream
pub fn generate_fields_init( req: &RequestFields, ) -> impl Iterator<Item = TokenStream> + '_
pub fn generate_new_request(&self) -> TokenStream
pub fn generate_extractors(&self) -> TokenStream
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl !Send for Request
impl !Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more