Skip to main content

AppBackendApi

Trait AppBackendApi 

Source
pub trait AppBackendApi {
    // Required methods
    async fn signup_v2(
        &self,
        signed_req: &Signed<&UserSignupRequestWire>,
    ) -> Result<Empty, BackendApiError>;
    async fn signup_v1(
        &self,
        signed_req: &Signed<&UserSignupRequestWireV1>,
    ) -> Result<Empty, BackendApiError>;
}
Expand description

Defines the api that the backend exposes to the app (via the gateway).

Required Methods§

Source

async fn signup_v2( &self, signed_req: &Signed<&UserSignupRequestWire>, ) -> Result<Empty, BackendApiError>

Source

async fn signup_v1( &self, signed_req: &Signed<&UserSignupRequestWireV1>, ) -> Result<Empty, BackendApiError>

👎Deprecated:

Use the signup_v2 API instead

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§