Skip to main content

io_msgraph/v1/rest/users/
contact_folders.rs

1//! Microsoft Graph contact folders (`users.contactFolders`): list,
2//! get, create, update, delete, list child folders.
3//!
4//! <https://learn.microsoft.com/en-us/graph/api/resources/contactfolder>
5
6use alloc::string::String;
7
8use serde::{Deserialize, Serialize};
9
10pub mod child_folders;
11pub mod create;
12pub mod delete;
13pub mod get;
14pub mod list;
15pub mod update;
16
17/// A contact folder in a user's mailbox. Doubles as the create/update
18/// body, where only `display_name` is serialized.
19#[derive(Debug, Clone, Default, Deserialize, Serialize, Eq, PartialEq)]
20#[serde(rename_all = "camelCase")]
21pub struct MsgraphContactFolder {
22    /// The unique identifier of the folder.
23    #[serde(default, skip_serializing_if = "String::is_empty")]
24    pub id: String,
25    /// The display name of the folder.
26    #[serde(default, skip_serializing_if = "String::is_empty")]
27    pub display_name: String,
28    /// The identifier of the parent folder.
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub parent_folder_id: Option<String>,
31}