Skip to main content

MaecObject

Trait MaecObject 

Source
pub trait MaecObject {
    // Required methods
    fn id(&self) -> &str;
    fn type_(&self) -> &str;
    fn created(&self) -> DateTime<Utc>;
}
Expand description

Trait implemented by all MAEC objects for basic accessors

Required Methods§

Source

fn id(&self) -> &str

Returns the unique identifier of the object

Source

fn type_(&self) -> &str

Returns the type of the MAEC object (e.g., “package”, “malware-family”)

Source

fn created(&self) -> DateTime<Utc>

Returns when the object was created

Implementors§