pub struct SmtpFixture {
pub identifier: String,
pub name: String,
pub description: String,
pub match_criteria: MatchCriteria,
pub response: SmtpResponse,
pub auto_reply: Option<AutoReply>,
pub storage: StorageConfig,
pub behavior: BehaviorConfig,
}Expand description
An SMTP fixture defining how to handle emails
Fields§
§identifier: StringUnique identifier for this fixture
name: StringHuman-readable name
description: StringDescription of what this fixture does
match_criteria: MatchCriteriaMatching criteria for emails
response: SmtpResponseResponse configuration
auto_reply: Option<AutoReply>Auto-reply configuration
storage: StorageConfigStorage configuration
behavior: BehaviorConfigBehavior simulation
Implementations§
Trait Implementations§
Source§impl Clone for SmtpFixture
impl Clone for SmtpFixture
Source§fn clone(&self) -> SmtpFixture
fn clone(&self) -> SmtpFixture
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmtpFixture
impl Debug for SmtpFixture
Source§impl<'de> Deserialize<'de> for SmtpFixture
impl<'de> Deserialize<'de> for SmtpFixture
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 SmtpFixture
impl RefUnwindSafe for SmtpFixture
impl Send for SmtpFixture
impl Sync for SmtpFixture
impl Unpin for SmtpFixture
impl UnwindSafe for SmtpFixture
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)