jmap_client/thread/get.rs
1/*
2 * Copyright Stalwart Labs LLC See the COPYING
3 * file at the top-level directory of this distribution.
4 *
5 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8 * option. This file may not be copied, modified, or distributed
9 * except according to those terms.
10 */
11
12use crate::core::get::GetObject;
13
14use super::Thread;
15
16impl Thread {
17 pub fn id(&self) -> &str {
18 &self.id
19 }
20
21 pub fn email_ids(&self) -> &[String] {
22 &self.email_ids
23 }
24}
25
26impl GetObject for Thread {
27 type GetArguments = ();
28}