pub trait MessageExt {
// Required methods
fn validate_basic(&self) -> Result<(), ExtensionError>;
fn is_expired(&self) -> bool;
fn is_scheduled(&self) -> bool;
fn get_age_seconds(&self) -> Option<i64>;
}Expand description
Extension trait for Message with additional utilities
Required Methods§
Sourcefn validate_basic(&self) -> Result<(), ExtensionError>
fn validate_basic(&self) -> Result<(), ExtensionError>
Validate basic message structure
Sourcefn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Check if message is expired
Sourcefn is_scheduled(&self) -> bool
fn is_scheduled(&self) -> bool
Check if message is scheduled for future execution
Sourcefn get_age_seconds(&self) -> Option<i64>
fn get_age_seconds(&self) -> Option<i64>
Get message age in seconds