pub struct ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> { /* private fields */ }
Implementations§
Source§impl<TRootCtx, TCtx, TError, TBaseInput, TInput, TBaseResult, TResult> ProcedureBuilder<TError, TRootCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>where
TError: Error,
TRootCtx: 'static,
TCtx: 'static,
TInput: 'static,
TBaseInput: 'static,
TResult: 'static,
TBaseResult: 'static,
impl<TRootCtx, TCtx, TError, TBaseInput, TInput, TBaseResult, TResult> ProcedureBuilder<TError, TRootCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>where
TError: Error,
TRootCtx: 'static,
TCtx: 'static,
TInput: 'static,
TBaseInput: 'static,
TResult: 'static,
TBaseResult: 'static,
pub fn with<M: IntoMiddleware<TError, TRootCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>>( self, mw: M, ) -> ProcedureBuilder<TError, TRootCtx, M::TNextCtx, TBaseInput, M::I, TBaseResult, M::R>
pub fn setup( self, func: impl FnOnce(&mut State, ProcedureMeta) + 'static, ) -> Self
pub fn query<F: Future<Output = Result<TResult, TError>> + Send + 'static>( self, handler: impl Fn(TCtx, TInput) -> F + Send + Sync + 'static, ) -> Procedure<TRootCtx, TBaseInput, TBaseResult>
pub fn mutation<F: Future<Output = Result<TResult, TError>> + Send + 'static>( self, handler: impl Fn(TCtx, TInput) -> F + Send + Sync + 'static, ) -> Procedure<TRootCtx, TBaseInput, TBaseResult>
Source§impl<TRootCtx, TCtx, TError, TBaseInput, TInput, TBaseResult, TResult, S> ProcedureBuilder<TError, TRootCtx, TCtx, TBaseInput, TInput, TBaseResult, Stream<S>>
impl<TRootCtx, TCtx, TError, TBaseInput, TInput, TBaseResult, TResult, S> ProcedureBuilder<TError, TRootCtx, TCtx, TBaseInput, TInput, TBaseResult, Stream<S>>
Trait Implementations§
Auto Trait Implementations§
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> Freeze for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> !RefUnwindSafe for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> !Send for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> !Sync for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> Unpin for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
impl<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult> !UnwindSafe for ProcedureBuilder<TError, TBaseCtx, TCtx, TBaseInput, TInput, TBaseResult, TResult>
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