pub async fn run(
        self,
        ctx: &ExtensionContext<'_>,
    ) -> Result<ValidationResult, Vec<ServerError>> {
        if let Some((first, next)) = self.chain.split_first() {
            first
                .validation(
                    ctx,
                    NextValidation {
                        chain: next,
                        validation_fut: self.validation_fut,
                    },
                )
                .await
        } else {
            self.validation_fut.await
        }
    }
/// Call the [Extension::validation] function of next extension.
Call the [Extension::validation] function of next extension.
Call the [ Extension :: validation ] function of next extension .
pub async fn run(
        self,
        ctx: &ExtensionContext<'_>,
    ) -> Result<ValidationResult, Vec<ServerError>> {
        if let Some((first, next)) = self.chain.split_first() {
            first
                .validation(
                    ctx,
                    NextValidation {
                        chain: next,
                        validation_fut: self.validation_fut,
                    },
                )
                .await
        } else {
            self.validation_fut.await
        }
    }
pub async fn run ( self , ctx : & ExtensionContext < ' _ > , ) -> Result < ValidationResult , Vec < ServerError > > { if let Some ( ( first , next ) ) = self . chain . split_first ( ) { first . validation ( ctx , NextValidation { chain : next , validation_fut : self . validation_fut , } , ) . await } else { self . validation_fut . await } }
Call the [Extension::validation] function of next extension.
Call the [ Extension :: validation ] function of next extension .
self
ctx
&ExtensionContext<'_>
self
ctx
&ExtensionContext<'_>