Function mailslurp::apis::wait_for_controller_api::wait_for_matching_first_email[][src]

pub async fn wait_for_matching_first_email(
    configuration: &Configuration,
    params: WaitForMatchingFirstEmailParams
) -> Result<Email, Error<WaitForMatchingFirstEmailError>>

Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the MatchOptions object for options. An example payload is { matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController getEmailContentMatch method.