Skip to main content

annotations_to_dict

Function annotations_to_dict 

Source
pub fn annotations_to_dict(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.