zerokms_protocol

Trait ViturRequest

source
pub trait ViturRequest:
    Serialize
    + for<'de> Deserialize<'de>
    + Sized
    + Send {
    type Response: ViturResponse;

    const SCOPE: &'static str;
    const ENDPOINT: &'static str;
}

Required Associated Constants§

source

const SCOPE: &'static str

source

const ENDPOINT: &'static str

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ViturRequest for CreateDatasetRequest<'_>

source§

const ENDPOINT: &'static str = "create-dataset"

source§

const SCOPE: &'static str = "dataset:create"

source§

type Response = Dataset

source§

impl ViturRequest for DisableDatasetRequest

source§

const ENDPOINT: &'static str = "disable-dataset"

source§

const SCOPE: &'static str = "dataset:disable"

source§

type Response = EmptyResponse

source§

impl ViturRequest for EnableDatasetRequest

source§

const ENDPOINT: &'static str = "enable-dataset"

source§

const SCOPE: &'static str = "dataset:enable"

source§

type Response = EmptyResponse

source§

impl ViturRequest for GenerateKeyRequest<'_>

source§

const ENDPOINT: &'static str = "generate-data-key"

source§

const SCOPE: &'static str = "data_key:generate"

source§

type Response = GenerateKeyResponse

source§

impl ViturRequest for GrantDatasetRequest

source§

const ENDPOINT: &'static str = "grant-dataset"

source§

const SCOPE: &'static str = "dataset:grant"

source§

type Response = EmptyResponse

source§

impl ViturRequest for ListClientRequest

source§

const ENDPOINT: &'static str = "list-clients"

source§

const SCOPE: &'static str = "client:list"

source§

type Response = Vec<DatasetClient>

source§

impl ViturRequest for ListDatasetRequest

source§

const ENDPOINT: &'static str = "list-datasets"

source§

const SCOPE: &'static str = "dataset:list"

source§

type Response = Vec<Dataset>

source§

impl ViturRequest for LoadConfigRequest

source§

const ENDPOINT: &'static str = "load-config"

source§

const SCOPE: &'static str = "config:read"

source§

type Response = LoadConfigResponse

source§

impl ViturRequest for ModifyDatasetRequest<'_>

source§

const ENDPOINT: &'static str = "modify-dataset"

source§

const SCOPE: &'static str = "dataset:modify"

source§

type Response = EmptyResponse

source§

impl ViturRequest for RetrieveKeyRequest<'_>

source§

const ENDPOINT: &'static str = "retrieve-data-key"

source§

const SCOPE: &'static str = "data_key:retrieve"

source§

type Response = RetrieveKeyResponse

source§

impl ViturRequest for RevokeClientRequest

source§

const ENDPOINT: &'static str = "revoke-client"

source§

const SCOPE: &'static str = "client:revoke"

source§

type Response = RevokeClientResponse

source§

impl ViturRequest for RevokeDatasetRequest

source§

const ENDPOINT: &'static str = "revoke-dataset"

source§

const SCOPE: &'static str = "dataset:revoke"

source§

type Response = EmptyResponse

source§

impl ViturRequest for SaveConfigRequest<'_>

source§

const ENDPOINT: &'static str = "save-config"

source§

const SCOPE: &'static str = "config:write"

source§

type Response = SaveConfigResponse

source§

impl<'a> ViturRequest for CreateClientRequest<'a>

source§

const ENDPOINT: &'static str = "create-client"

source§

const SCOPE: &'static str = "client:create"

source§

type Response = CreateClientResponse