soph-auth 0.31.0

The RUST Framework for Web Rustceans.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    async_trait,
    error::Error,
    traits::{ErrorTrait, InstanceTrait},
    Auth, Result,
};
use soph_core::{error::ContainerError, support::Container};

#[async_trait]
impl InstanceTrait for Auth {
    type Error = Error;

    async fn register(_: &Container) -> Result<Self, ContainerError> {
        Ok(Self::new().map_err(Error::wrap)?)
    }
}