/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use ews::delete_folder::DeleteFolder; use std::marker::PhantomData; use super::{DoEraseFolder, DoOperation, XpComEwsClient}; use crate::{client::ServerType, safe_xpcom::SafeEwsSimpleOperationListener}; impl XpComEwsClient { pub async fn delete_folder( self, listener: SafeEwsSimpleOperationListener, folder_ids: Vec, ) { let operation = DoEraseFolder:: { folder_ids, _op_type: PhantomData, }; operation.handle_operation(&self, &listener).await; } }