Upstream commit: 474dd0229cb20cf513036619781ed97bd8073c3f Enterprise-only files removed or emptied: 63 Enterprise-only snippets removed: 117 in 50 files Dangling module declarations removed: 5 Cargo edits turning enterprise off: 14 Verification: clean Enterprise feature gates left for rebuilt features: 19 in 18 files Produced by tools/fork/strip.py. The full report is in docs/fork/strip-reports/ on main.
38 lines
1.0 KiB
Rust
38 lines
1.0 KiB
Rust
/*
|
|
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
|
|
*/
|
|
|
|
use crate::object::email::{EmailProperty, EmailValue};
|
|
use crate::types::state::State;
|
|
use jmap_tools::Value;
|
|
use types::{id::Id, type_state::DataType};
|
|
use utils::map::vec_map::VecMap;
|
|
|
|
#[derive(serde::Serialize, Debug)]
|
|
#[serde(tag = "@type")]
|
|
pub enum PushObject {
|
|
StateChange {
|
|
changed: VecMap<Id, VecMap<DataType, State>>,
|
|
},
|
|
EmailPush {
|
|
#[serde(rename = "accountId")]
|
|
account_id: Id,
|
|
emails: Vec<Value<'static, EmailProperty, EmailValue>>,
|
|
#[serde(skip_serializing_if = "Option::is_none")]
|
|
state: Option<State>,
|
|
},
|
|
CalendarAlert {
|
|
#[serde(rename = "accountId")]
|
|
account_id: Id,
|
|
#[serde(rename = "calendarEventId")]
|
|
calendar_event_id: Id,
|
|
uid: String,
|
|
#[serde(rename = "recurrenceId")]
|
|
recurrence_id: Option<String>,
|
|
#[serde(rename = "alertId")]
|
|
alert_id: String,
|
|
},
|
|
}
|