Trait lb_rs::shared::api::Request

source ·
pub trait Request: Serialize + 'static {
    type Response: Debug + DeserializeOwned + Clone;
    type Error: Debug + DeserializeOwned + Clone;

    const METHOD: Method;
    const ROUTE: &'static str;
}

Required Associated Constants§

source

const METHOD: Method

source

const ROUTE: &'static str

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Request for AdminDisappearAccountRequest

source§

const METHOD: Method = Method::DELETE

source§

const ROUTE: &'static str = "/admin-disappear-account"

source§

type Response = ()

source§

type Error = AdminDisappearAccountError

source§

impl Request for AdminDisappearFileRequest

source§

const METHOD: Method = Method::DELETE

source§

const ROUTE: &'static str = "/admin-disappear-file"

source§

type Response = ()

source§

type Error = AdminDisappearFileError

source§

impl Request for AdminFileInfoRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/admin-file-info"

source§

type Response = AdminFileInfoResponse

source§

type Error = AdminFileInfoError

source§

impl Request for AdminGetAccountInfoRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/admin-get-account-info"

source§

type Response = AdminGetAccountInfoResponse

source§

type Error = AdminGetAccountInfoError

source§

impl Request for AdminListUsersRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/admin-list-users"

source§

type Response = AdminListUsersResponse

source§

type Error = AdminListUsersError

source§

impl Request for AdminRebuildIndexRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/admin-rebuild-index"

source§

type Response = ()

source§

type Error = AdminRebuildIndexError

source§

impl Request for AdminSetUserTierRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/admin-set-user-tier"

source§

type Response = AdminSetUserTierResponse

source§

type Error = AdminSetUserTierError

source§

impl Request for AdminValidateAccountRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/admin-validate-account"

source§

type Response = AdminValidateAccount

source§

type Error = AdminValidateAccountError

source§

impl Request for AdminValidateServerRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/admin-validate-server"

source§

type Response = AdminValidateServer

source§

type Error = AdminValidateServerError

source§

impl Request for CancelSubscriptionRequest

source§

const METHOD: Method = Method::DELETE

source§

const ROUTE: &'static str = "/cancel-subscription"

source§

type Response = CancelSubscriptionResponse

source§

type Error = CancelSubscriptionError

source§

impl Request for ChangeDocRequest

source§

const METHOD: Method = Method::PUT

source§

const ROUTE: &'static str = "/change-document-content"

source§

type Response = ()

source§

type Error = ChangeDocError

source§

impl Request for DeleteAccountRequest

source§

const METHOD: Method = Method::DELETE

source§

const ROUTE: &'static str = "/delete-account"

source§

type Response = ()

source§

type Error = DeleteAccountError

source§

impl Request for GetBuildInfoRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-build-info"

source§

type Response = GetBuildInfoResponse

source§

type Error = GetBuildInfoError

source§

impl Request for GetDocRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-document"

source§

type Response = GetDocumentResponse

source§

type Error = GetDocumentError

source§

impl Request for GetFileIdsRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-file-ids"

source§

type Response = GetFileIdsResponse

source§

type Error = GetFileIdsError

source§

impl Request for GetPublicKeyRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-public-key"

source§

type Response = GetPublicKeyResponse

source§

type Error = GetPublicKeyError

source§

impl Request for GetSubscriptionInfoRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-subscription-info"

source§

type Response = GetSubscriptionInfoResponse

source§

type Error = GetSubscriptionInfoError

source§

impl Request for GetUpdatesRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-updates"

source§

type Response = GetUpdatesResponse

source§

type Error = GetUpdatesError

source§

impl Request for GetUsageRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-usage"

source§

type Response = GetUsageResponse

source§

type Error = GetUsageError

source§

impl Request for GetUsernameRequest

source§

const METHOD: Method = Method::GET

source§

const ROUTE: &'static str = "/get-username"

source§

type Response = GetUsernameResponse

source§

type Error = GetUsernameError

source§

impl Request for NewAccountRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/new-account"

source§

type Response = NewAccountResponse

source§

type Error = NewAccountError

source§

impl Request for UpgradeAccountAppStoreRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/upgrade-account-app-store"

source§

type Response = UpgradeAccountAppStoreResponse

source§

type Error = UpgradeAccountAppStoreError

source§

impl Request for UpgradeAccountGooglePlayRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/upgrade-account-google-play"

source§

type Response = UpgradeAccountGooglePlayResponse

source§

type Error = UpgradeAccountGooglePlayError

source§

impl Request for UpgradeAccountStripeRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/upgrade-account-stripe"

source§

type Response = UpgradeAccountStripeResponse

source§

type Error = UpgradeAccountStripeError

source§

impl Request for UpsertRequest

source§

const METHOD: Method = Method::POST

source§

const ROUTE: &'static str = "/upsert-file-metadata"

source§

type Response = ()

source§

type Error = UpsertError