Skip to main content

annotations_to_value

Function annotations_to_value 

Source
pub fn annotations_to_value(annotations: Option<&ModuleAnnotations>) -> Value
Expand description

Convert annotations to a JSON Value, handling both present and absent forms.

Returns Value::Null if annotations is None or serialization fails.