pub trait HasSchemasAndRegistries<T> {
    type Schemas;
    type Registries;

    // Required methods
    fn schemas(&self, registry_id: TrustRegistryId) -> Self::Schemas;
    fn registries(&self) -> Self::Registries;
    fn modify_schemas<F, R>(&self, registry_id: TrustRegistryId, f: F) -> R
       where F: FnOnce(&mut Self::Schemas) -> R;
    fn modify_registries<F, R>(&self, f: F) -> R
       where F: FnOnce(&mut Self::Registries) -> R;
}
Expand description

An entity that has references to schemas and registries.

Required Associated Types§

source

type Schemas

Associated Schemas.

source

type Registries

Associated Registries.

Required Methods§

source

fn schemas(&self, registry_id: TrustRegistryId) -> Self::Schemas

source

fn registries(&self) -> Self::Registries

source

fn modify_schemas<F, R>(&self, registry_id: TrustRegistryId, f: F) -> Rwhere F: FnOnce(&mut Self::Schemas) -> R,

source

fn modify_registries<F, R>(&self, f: F) -> Rwhere F: FnOnce(&mut Self::Registries) -> R,

Implementors§