pub fn encode_flag(record: &FlagV1) -> Result<Value, StoreError>Expand description
Encode a validated flag in the version-one JSON envelope.
pub fn encode_flag(record: &FlagV1) -> Result<Value, StoreError>Encode a validated flag in the version-one JSON envelope.
StoreError::Invalid for invalid reason, identity, ref, or sequence.