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

A string to uniquely identify this record type.

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.

Get the guid string for this record type and an id string.

Implementors

source

impl TypedValue for Post