metadata_gen::metadata

Function process_metadata

Source
pub fn process_metadata(metadata: &Metadata) -> Result<Metadata, MetadataError>
Expand description

Processes the extracted metadata.

This function standardizes dates, ensures required fields are present, and generates derived fields.

§Arguments

  • metadata - A reference to the Metadata instance to process.

§Returns

A Result containing the processed Metadata if successful, or a MetadataError if processing fails.

§Errors

Returns a MetadataError if date standardization fails or if required fields are missing.