pub struct AdminCreateFormPageLoader<S, F> { /* private fields */ }Trait Implementations§
Source§impl<S: Clone, F> Clone for AdminCreateFormPageLoader<S, F>
impl<S: Clone, F> Clone for AdminCreateFormPageLoader<S, F>
Source§impl<S, F> FromState<S> for AdminCreateFormPageLoader<S, F>
impl<S, F> FromState<S> for AdminCreateFormPageLoader<S, F>
fn from_state(state: &S) -> Self
Source§impl<S, F> TemplateDataLoader<S> for AdminCreateFormPageLoader<S, F>where
S: ProvideState<AdminPageLoader> + Send + Sync + Clone + 'static,
F: Send + Sync + 'static + AdminCreateForm<S>,
impl<S, F> TemplateDataLoader<S> for AdminCreateFormPageLoader<S, F>where
S: ProvideState<AdminPageLoader> + Send + Sync + Clone + 'static,
F: Send + Sync + 'static + AdminCreateForm<S>,
type Args = (Method, <AdminPageLoader as TemplateDataLoader<S>>::Args)
type Data = AdminPageData<AdminFormCreatePageData>
async fn load_data(&self, __arg1: Self::Args) -> Result<Self::Data>
Source§async fn render_error(&self, error: Error) -> impl IntoResponse
async fn render_error(&self, error: Error) -> impl IntoResponse
Map an emitted error to a response, this can be used to render another error template instead of the plain error text
fn data_load_call(
&self,
template: &'static str,
parts: &mut Parts,
state: &S,
) -> impl Future<Output = Response<Body>> + Sendwhere
<Self::Args as FromRequestParts<S>>::Rejection: Send,
Self::Args: Send,
S: Send + Sync + ProvideState<Templating> + 'static,
Self: Sync,
fn get_additional_response_parts( &self, _args: Self::Args, ) -> impl IntoResponseParts
Auto Trait Implementations§
impl<S, F> !RefUnwindSafe for AdminCreateFormPageLoader<S, F>
impl<S, F> !UnwindSafe for AdminCreateFormPageLoader<S, F>
impl<S, F> Freeze for AdminCreateFormPageLoader<S, F>where
S: Freeze,
impl<S, F> Send for AdminCreateFormPageLoader<S, F>
impl<S, F> Sync for AdminCreateFormPageLoader<S, F>
impl<S, F> Unpin for AdminCreateFormPageLoader<S, F>
impl<S, F> UnsafeUnpin for AdminCreateFormPageLoader<S, F>where
S: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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