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

pub async fn wait_for_latest_email(
    configuration: &Configuration,
    params: WaitForLatestEmailParams
) -> Result<Email, Error<WaitForLatestEmailError>>

Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set unreadOnly=true or see the other receive methods such as waitForNthEmail or waitForEmailCount.