Skip to main content

service_visual_html

Function service_visual_html 

Source
pub fn service_visual_html(
    app_root: &Path,
    image_url: Option<&str>,
    service_name: &str,
    primary_color: Option<&str>,
) -> Option<String>
Expand description

Renders the service visual using the app-owned image or badge fragment.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::service_visual_html 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::runtime::json_commands::service_visual_html.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::service_visual_html(std::path::Path::new("apps/dev_docs"), todo!(), todo!(), todo!());