frameassembly 1.0.1

A Domain-Specific Language (DSL) for writing deterministic network traffic to .pcap files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! SMTP protocol AST definitions.

/// RFC 5321 Simple Mail Transfer Protocol specification.
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct SmtpSpec<'a> {
    /// SMTP command verb.
    pub cmd: Option<&'a str>,
    /// Command parameter.
    pub param: Option<&'a str>,
    /// Reply status code.
    pub code: Option<u16>,
    /// Reply explanation text.
    pub reply: Option<&'a str>,
    /// Email body string.
    pub body: Option<&'a str>,
}