Trait poem_openapi::types::ToYAML
source · pub trait ToYAML: Type {
// Required method
fn to_yaml(&self) -> Option<Value>;
// Provided method
fn to_yaml_string(&self) -> String { ... }
}
Expand description
Represents a type that can converted to YAML value.
Required Methods§
Provided Methods§
sourcefn to_yaml_string(&self) -> String
fn to_yaml_string(&self) -> String
Convert this value to YAML string.