Skip to main content

Validator

Trait Validator 

Source
pub trait Validator: Send {
    // Required method
    fn validate(
        &self,
    ) -> impl Future<Output = Result<ValidationReport, AuthError>> + Send;
}
Expand description

Checks mail, calendar and contacts for a sign-in.

The implementor holds the credentials. Login and the hosted sign-in page both call this and accept the attempt when any service succeeds.

Required Methods§

Source

fn validate( &self, ) -> impl Future<Output = Result<ValidationReport, AuthError>> + Send

Runs the checks.

§Errors

Returns AuthError when validation cannot be run at all.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§