#[non_exhaustive]pub struct Prepare<'a> {
pub name: &'a str,
pub header: &'a RequestHeader,
pub params: &'a PathParams,
pub state: &'a mut State,
pub resources: &'a Resources,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: &'a str
§header: &'a RequestHeader
§params: &'a PathParams
§state: &'a mut State
§resources: &'a Resources
Implementations§
Source§impl<'a> Prepare<'a>
impl<'a> Prepare<'a>
pub fn new( name: &'a str, header: &'a RequestHeader, params: &'a PathParams, state: &'a mut State, resources: &'a Resources, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for Prepare<'a>
impl<'a> !RefUnwindSafe for Prepare<'a>
impl<'a> Send for Prepare<'a>
impl<'a> !Sync for Prepare<'a>
impl<'a> Unpin for Prepare<'a>
impl<'a> !UnwindSafe for Prepare<'a>
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