Trait oas_core::TypedValue
source · [−]pub trait TypedValue: Debug + Any + Serialize + DeserializeOwned + Clone + Send {
const NAME: &'static str;
fn label(&self) -> Option<&str> { ... }
fn guid(id: &str) -> String { ... }
fn validate(&self) -> Result<(), ValidationError> { ... }
}
Expand description
A trait to implement on value structs for typed [Record]s.
Required Associated Constants
Provided Methods
Get a human-readable label for this record.
This method is optional and returns None by default. Record types may implement this method to return a title or headline.
source