pub struct RspamdScanReply {Show 15 fields
pub is_skipped: bool,
pub score: f64,
pub required_score: f64,
pub action: String,
pub thresholds: HashMap<String, f64>,
pub symbols: HashMap<String, Symbol>,
pub messages: HashMap<String, String>,
pub urls: Vec<String>,
pub emails: Vec<String>,
pub message_id: String,
pub time_real: f64,
pub milter: Option<Milter>,
pub filename: String,
pub scan_time: f64,
pub rewritten_body: Option<Vec<u8>>,
}Expand description
Rspamd scan reply structure
Fields§
§is_skipped: boolIf message has been skipped
score: f64Scan score
required_score: f64Required score (legacy)
action: StringAction to take
thresholds: HashMap<String, f64>Action thresholds
symbols: HashMap<String, Symbol>Symbols detected
messages: HashMap<String, String>Messages
urls: Vec<String>URLs
emails: Vec<String>Emails
message_id: StringMessage id
time_real: f64Real time of scan
milter: Option<Milter>Milter actions block
filename: StringFilename
scan_time: f64§rewritten_body: Option<Vec<u8>>Rewritten message body (only present when body_block flag is set and message was rewritten) This field is not part of the JSON response but is extracted from the response body
Trait Implementations§
Source§impl Debug for RspamdScanReply
impl Debug for RspamdScanReply
Source§impl<'de> Deserialize<'de> for RspamdScanReply
impl<'de> Deserialize<'de> for RspamdScanReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RspamdScanReply
impl RefUnwindSafe for RspamdScanReply
impl Send for RspamdScanReply
impl Sync for RspamdScanReply
impl Unpin for RspamdScanReply
impl UnwindSafe for RspamdScanReply
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more