Skip to main content

declarative_source_default_path_segment

Function declarative_source_default_path_segment 

Source
pub fn declarative_source_default_path_segment(
    entity_id: &str,
    runtime_collection: Option<&str>,
) -> Option<String>
Expand description

Derives a stable generated-admin collection segment from entity metadata.

§Parameters

§Returns

Returns Some when crate::declarative::declarative_source_default_path_segment can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::declarative::declarative_source_default_path_segment.

§Examples

ⓘ
let _result = pharos_runtime_compiler::declarative::declarative_source_default_path_segment("entity", todo!());