Skip to main content

Module common

Module common 

Source
Expand description

Common MAEC types and utilities

This module provides core types shared across all MAEC objects, including common properties, traits, and ID generation/validation helpers.

Structs§

CommonProperties
Common properties shared by MAEC top-level objects
ExternalReference
External Reference - Links to external resources

Traits§

MaecObject
Trait implemented by all MAEC objects for basic accessors

Functions§

extract_type_from_id
Extracts the object type from a MAEC ID
generate_maec_id
Generates a unique MAEC identifier
is_valid_maec_id
Validates that a string is a valid MAEC identifier
is_valid_ref_for_type
Validates that a reference ID matches the expected object type