Skip to main content

BrowserDictionaryDiscoveryCapability

Trait BrowserDictionaryDiscoveryCapability 

Source
pub trait BrowserDictionaryDiscoveryCapability:
    Debug
    + Send
    + Sync {
    // Required methods
    fn discover_dictionary(
        &self,
        datastore_id: PublicUuid,
        study_id: PublicUuid,
        resource: BrowserDictionaryDiscoveryResourceRef,
    ) -> Result<BrowserDictionaryDiscoverySource, BrowserDictionaryDiscoveryError>;
    fn discover_catalogue_variables(
        &self,
        datastore_id: PublicUuid,
    ) -> Result<Vec<BrowserDictionaryVariableCatalogueRecord>, BrowserDictionaryDiscoveryError>;
}
Expand description

Read-only capability required by browser dictionary discovery and search.

Implementations must return metadata only and must not expose database handles, content rows, storage topology, or credentials.

Required Methods§

Source

fn discover_dictionary( &self, datastore_id: PublicUuid, study_id: PublicUuid, resource: BrowserDictionaryDiscoveryResourceRef, ) -> Result<BrowserDictionaryDiscoverySource, BrowserDictionaryDiscoveryError>

Resolves one study resource and all browser-visible dictionary metadata.

Returns a typed discovery failure when the datastore, study, resource, or configured authority is unavailable.

Source

fn discover_catalogue_variables( &self, datastore_id: PublicUuid, ) -> Result<Vec<BrowserDictionaryVariableCatalogueRecord>, BrowserDictionaryDiscoveryError>

Lists browser-visible variables across the selected datastore.

Returned records are filtered, ordered, and paged by the app workflow.

Implementors§