An administrator picks sections, a schedule (daily, weekly or monthly, at a time in a time zone) and recipients, who must be accounts on this server. Every node looks for due reports once a minute; a run is claimed with the task lock, keyed by report and due time, and recorded on the report, so it goes once. The report is built from what the server already keeps: mail flow, the queue, spoofing from received DMARC reports, TLS failures, deliverability findings and what changed since the last run, security counters, people near their quota, and expiring certificates. It is mailed as text and HTML with optional CSV attachments, DKIM-signed; a sender domain without a key fails the run with that reason instead of sending unsigned. The weekly digest is a built-in report on every server, on by default: every section, Mondays 07:00 UTC, to the system administrators. It can be changed or turned off, not deleted. A tenant administrator makes and sees only their own tenant's reports, which leave out server-wide sections. New: inbuxa:ScheduledReport and inbuxa:ScheduledReportSettings, the sysScheduledReportGet and sysScheduledReportUpdate permissions (granted once to existing administrator roles), privacy catalog entries, and a system test. Spec: inbuxa-drafts specs/scheduled-reports.md.
1006 lines
38 KiB
Rust
1006 lines
38 KiB
Rust
/*
|
|
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
|
|
*
|
|
* Modified by Coffey Labs in 2026 for INBUXA.
|
|
*/
|
|
|
|
pub mod serialize;
|
|
pub mod status;
|
|
|
|
use self::serialize::serialize_hex;
|
|
use crate::{
|
|
error::method::MethodErrorWrapper,
|
|
method::{
|
|
availability::GetAvailabilityResponse,
|
|
changes::ChangesResponse,
|
|
copy::{CopyBlobResponse, CopyResponse},
|
|
get::GetResponse,
|
|
import::ImportEmailResponse,
|
|
lookup::BlobLookupResponse,
|
|
parse::ParseResponse,
|
|
query::QueryResponse,
|
|
query_changes::QueryChangesResponse,
|
|
search_snippet::GetSearchSnippetResponse,
|
|
set::SetResponse,
|
|
upload::BlobUploadResponse,
|
|
validate::ValidateSieveScriptResponse,
|
|
},
|
|
object::{
|
|
AnyId,
|
|
addressbook::AddressBook,
|
|
blob::Blob,
|
|
calendar::Calendar,
|
|
calendar_event::CalendarEvent,
|
|
calendar_event_notification::{
|
|
CalendarEventNotification, CalendarEventNotificationGetResponse,
|
|
},
|
|
contact::ContactCard,
|
|
email::Email,
|
|
email_submission::EmailSubmission,
|
|
file_node::FileNode,
|
|
identity::Identity,
|
|
mailbox::Mailbox,
|
|
participant_identity::ParticipantIdentity,
|
|
principal::Principal,
|
|
push_subscription::PushSubscription,
|
|
quota::Quota,
|
|
registry::Registry,
|
|
share_notification::ShareNotification,
|
|
sieve::Sieve,
|
|
thread::Thread,
|
|
vacation_response::VacationResponse,
|
|
},
|
|
request::{Call, method::MethodName},
|
|
};
|
|
use jmap_tools::{Null, Value};
|
|
use std::collections::HashMap;
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum ResponseMethod<'x> {
|
|
Get(GetResponseMethod),
|
|
Set(SetResponseMethod),
|
|
Changes(ChangesResponseMethod),
|
|
Copy(CopyResponseMethod),
|
|
ImportEmail(ImportEmailResponse),
|
|
Parse(ParseResponseMethod),
|
|
QueryChanges(QueryChangesResponse),
|
|
Query(QueryResponse),
|
|
SearchSnippet(GetSearchSnippetResponse),
|
|
ValidateScript(ValidateSieveScriptResponse),
|
|
LookupBlob(BlobLookupResponse),
|
|
UploadBlob(BlobUploadResponse),
|
|
Echo(Value<'x, Null, Null>),
|
|
Error(MethodErrorWrapper),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum GetResponseMethod {
|
|
Email(GetResponse<Email>),
|
|
Mailbox(GetResponse<Mailbox>),
|
|
Thread(GetResponse<Thread>),
|
|
Identity(GetResponse<Identity>),
|
|
EmailSubmission(GetResponse<EmailSubmission>),
|
|
PushSubscription(GetResponse<PushSubscription>),
|
|
Sieve(GetResponse<Sieve>),
|
|
VacationResponse(GetResponse<VacationResponse>),
|
|
Principal(GetResponse<Principal>),
|
|
PrincipalAvailability(GetAvailabilityResponse),
|
|
Quota(GetResponse<Quota>),
|
|
Blob(GetResponse<Blob>),
|
|
AddressBook(GetResponse<AddressBook>),
|
|
ContactCard(GetResponse<ContactCard>),
|
|
FileNode(GetResponse<FileNode>),
|
|
Calendar(GetResponse<Calendar>),
|
|
CalendarEvent(GetResponse<CalendarEvent>),
|
|
CalendarEventNotification(CalendarEventNotificationGetResponse),
|
|
ParticipantIdentity(GetResponse<ParticipantIdentity>),
|
|
ShareNotification(GetResponse<ShareNotification>),
|
|
Registry(GetResponse<Registry>),
|
|
MaskedEmail(GetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>),
|
|
DeletedAccount(GetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>),
|
|
AiLimits(GetResponse<crate::object::inbuxa_ai_limits::AiLimits>),
|
|
LogSettings(GetResponse<crate::object::inbuxa_log_settings::LogSettings>),
|
|
DlpSettings(GetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>),
|
|
DataInventory(GetResponse<crate::object::inbuxa_data_inventory::DataInventory>),
|
|
InventorySnapshot(GetResponse<crate::object::inbuxa_inventory_snapshot::InventorySnapshot>),
|
|
AuditEvent(GetResponse<crate::object::inbuxa_audit::AuditEvent>),
|
|
AuditSettings(GetResponse<crate::object::inbuxa_audit::AuditSettings>),
|
|
AccountLock(GetResponse<crate::object::inbuxa_account_lock::AccountLock>),
|
|
LegalHold(GetResponse<crate::object::inbuxa_legal_hold::LegalHold>),
|
|
MailRule(GetResponse<crate::object::inbuxa_mail_rule::MailRule>),
|
|
SecurityAcceptance(GetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>),
|
|
DeliverabilityReport(GetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>),
|
|
DeliverabilitySettings(GetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>),
|
|
ScheduledReport(GetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>),
|
|
ScheduledReportSettings(GetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>),
|
|
Journal(GetResponse<crate::object::inbuxa_journal::Journal>),
|
|
JournalEntry(GetResponse<crate::object::inbuxa_journal_entry::JournalEntry>),
|
|
HeldMessage(GetResponse<crate::object::inbuxa_held_message::HeldMessage>),
|
|
HoldExport(GetResponse<crate::object::inbuxa_hold_export::HoldExport>),
|
|
ProtocolPolicy(GetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>),
|
|
TenantProtocolPolicy(
|
|
GetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>,
|
|
),
|
|
SharingPolicy(
|
|
GetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>,
|
|
),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum SetResponseMethod {
|
|
Email(Box<SetResponse<Email>>),
|
|
Mailbox(Box<SetResponse<Mailbox>>),
|
|
Identity(Box<SetResponse<Identity>>),
|
|
EmailSubmission(Box<SetResponse<EmailSubmission>>),
|
|
PushSubscription(Box<SetResponse<PushSubscription>>),
|
|
Sieve(Box<SetResponse<Sieve>>),
|
|
VacationResponse(Box<SetResponse<VacationResponse>>),
|
|
AddressBook(Box<SetResponse<AddressBook>>),
|
|
ContactCard(Box<SetResponse<ContactCard>>),
|
|
FileNode(Box<SetResponse<FileNode>>),
|
|
ShareNotification(Box<SetResponse<ShareNotification>>),
|
|
Calendar(Box<SetResponse<Calendar>>),
|
|
CalendarEvent(Box<SetResponse<CalendarEvent>>),
|
|
CalendarEventNotification(Box<SetResponse<CalendarEventNotification>>),
|
|
ParticipantIdentity(Box<SetResponse<ParticipantIdentity>>),
|
|
Registry(Box<SetResponse<Registry>>),
|
|
MaskedEmail(Box<SetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>>),
|
|
DeletedAccount(Box<SetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>>),
|
|
AiLimits(Box<SetResponse<crate::object::inbuxa_ai_limits::AiLimits>>),
|
|
LogSettings(Box<SetResponse<crate::object::inbuxa_log_settings::LogSettings>>),
|
|
DlpSettings(Box<SetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>>),
|
|
AuditSettings(Box<SetResponse<crate::object::inbuxa_audit::AuditSettings>>),
|
|
AuditExport(Box<SetResponse<crate::object::inbuxa_audit::AuditExport>>),
|
|
AuditVerification(Box<SetResponse<crate::object::inbuxa_audit::AuditVerification>>),
|
|
AccountLock(Box<SetResponse<crate::object::inbuxa_account_lock::AccountLock>>),
|
|
LegalHold(Box<SetResponse<crate::object::inbuxa_legal_hold::LegalHold>>),
|
|
MailRule(Box<SetResponse<crate::object::inbuxa_mail_rule::MailRule>>),
|
|
SecurityAcceptance(
|
|
Box<SetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>>,
|
|
),
|
|
DeliverabilityReport(Box<SetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>>),
|
|
DeliverabilitySettings(Box<SetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>>),
|
|
ScheduledReport(Box<SetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>>),
|
|
ScheduledReportSettings(Box<SetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>>),
|
|
Journal(Box<SetResponse<crate::object::inbuxa_journal::Journal>>),
|
|
JournalExport(Box<SetResponse<crate::object::inbuxa_journal_entry::JournalExport>>),
|
|
JournalVerification(Box<SetResponse<crate::object::inbuxa_journal_entry::JournalVerification>>),
|
|
HeldMessage(Box<SetResponse<crate::object::inbuxa_held_message::HeldMessage>>),
|
|
HoldExport(Box<SetResponse<crate::object::inbuxa_hold_export::HoldExport>>),
|
|
Explanation(Box<SetResponse<crate::object::inbuxa_explanation::Explanation>>),
|
|
ProtocolPolicy(Box<SetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>>),
|
|
TenantProtocolPolicy(
|
|
Box<SetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>>,
|
|
),
|
|
SharingPolicy(
|
|
Box<SetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>>,
|
|
),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum ChangesResponseMethod {
|
|
Email(Box<ChangesResponse<Email>>),
|
|
Mailbox(Box<ChangesResponse<Mailbox>>),
|
|
Thread(Box<ChangesResponse<Thread>>),
|
|
Identity(Box<ChangesResponse<Identity>>),
|
|
EmailSubmission(Box<ChangesResponse<EmailSubmission>>),
|
|
Quota(Box<ChangesResponse<Quota>>),
|
|
AddressBook(Box<ChangesResponse<AddressBook>>),
|
|
ContactCard(Box<ChangesResponse<ContactCard>>),
|
|
FileNode(Box<ChangesResponse<FileNode>>),
|
|
Calendar(Box<ChangesResponse<Calendar>>),
|
|
CalendarEvent(Box<ChangesResponse<CalendarEvent>>),
|
|
CalendarEventNotification(Box<ChangesResponse<CalendarEventNotification>>),
|
|
ShareNotification(Box<ChangesResponse<ShareNotification>>),
|
|
// inbuxa: x:MaskedEmail/changes
|
|
Registry(Box<ChangesResponse<crate::object::registry::Registry>>),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum CopyResponseMethod {
|
|
Email(CopyResponse<Email>),
|
|
ContactCard(CopyResponse<ContactCard>),
|
|
CalendarEvent(CopyResponse<CalendarEvent>),
|
|
FileNode(CopyResponse<FileNode>),
|
|
Blob(CopyBlobResponse),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
#[serde(untagged)]
|
|
pub enum ParseResponseMethod {
|
|
Email(ParseResponse<Email>),
|
|
ContactCard(ParseResponse<ContactCard>),
|
|
CalendarEvent(ParseResponse<CalendarEvent>),
|
|
}
|
|
|
|
#[derive(Debug, serde::Serialize)]
|
|
pub struct Response<'x> {
|
|
#[serde(rename = "methodResponses")]
|
|
pub method_responses: Vec<Call<ResponseMethod<'x>>>,
|
|
|
|
#[serde(rename = "sessionState")]
|
|
#[serde(serialize_with = "serialize_hex")]
|
|
pub session_state: u32,
|
|
|
|
#[serde(rename = "createdIds")]
|
|
#[serde(skip_serializing_if = "HashMap::is_empty")]
|
|
pub created_ids: HashMap<String, AnyId>,
|
|
}
|
|
|
|
impl<'x> Response<'x> {
|
|
pub fn new(session_state: u32, created_ids: HashMap<String, AnyId>, capacity: usize) -> Self {
|
|
Response {
|
|
session_state,
|
|
created_ids,
|
|
method_responses: Vec::with_capacity(capacity),
|
|
}
|
|
}
|
|
|
|
pub fn push_response(
|
|
&mut self,
|
|
id: String,
|
|
name: MethodName,
|
|
method: impl Into<ResponseMethod<'x>>,
|
|
) {
|
|
self.method_responses.push(Call {
|
|
id,
|
|
method: method.into(),
|
|
name,
|
|
});
|
|
}
|
|
|
|
pub fn push_error(&mut self, id: String, err: impl Into<MethodErrorWrapper>) {
|
|
self.method_responses.push(Call {
|
|
id,
|
|
method: ResponseMethod::Error(err.into()),
|
|
name: MethodName::error(),
|
|
});
|
|
}
|
|
|
|
pub fn push_created_id(&mut self, create_id: String, id: impl Into<AnyId>) {
|
|
self.created_ids.insert(create_id, id.into());
|
|
}
|
|
}
|
|
|
|
impl From<trc::Error> for ResponseMethod<'_> {
|
|
fn from(error: trc::Error) -> Self {
|
|
ResponseMethod::Error(error.into())
|
|
}
|
|
}
|
|
|
|
impl<'x, T: Into<ResponseMethod<'x>>> From<trc::Result<T>> for ResponseMethod<'x> {
|
|
fn from(result: trc::Result<T>) -> Self {
|
|
match result {
|
|
Ok(value) => value.into(),
|
|
Err(error) => error.into(),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Email>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Email>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Email(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Mailbox>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Mailbox>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Mailbox(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Thread>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Thread>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Thread(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Identity>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Identity>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Identity(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<EmailSubmission>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<EmailSubmission>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::EmailSubmission(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<PushSubscription>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<PushSubscription>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::PushSubscription(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Sieve>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Sieve>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Sieve(value))
|
|
}
|
|
}
|
|
|
|
// inbuxa: Fastmail's MaskedEmail
|
|
impl<'x> From<GetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::MaskedEmail(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::fastmail_masked_email::FastmailMaskedEmail>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::MaskedEmail(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: AI call limits
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(value: GetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ProtocolPolicy(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(value: SetResponse<crate::object::inbuxa_protocol_policy::ProtocolPolicy>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ProtocolPolicy(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(
|
|
value: GetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>,
|
|
) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::TenantProtocolPolicy(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(
|
|
value: GetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>,
|
|
) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::SharingPolicy(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(
|
|
value: SetResponse<crate::object::inbuxa_tenant_protocol_policy::TenantProtocolPolicy>,
|
|
) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::TenantProtocolPolicy(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(
|
|
value: SetResponse<crate::object::inbuxa_sharing_policy::SharingPolicy>,
|
|
) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::SharingPolicy(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_ai_limits::AiLimits>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_ai_limits::AiLimits>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::AiLimits(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_log_settings::LogSettings>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_log_settings::LogSettings>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::LogSettings(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::DlpSettings(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_data_inventory::DataInventory>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_data_inventory::DataInventory>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::DataInventory(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_inventory_snapshot::InventorySnapshot>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_inventory_snapshot::InventorySnapshot>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::InventorySnapshot(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_ai_limits::AiLimits>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_ai_limits::AiLimits>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AiLimits(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_log_settings::LogSettings>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_log_settings::LogSettings>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::LogSettings(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_dlp_settings::DlpSettings>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::DlpSettings(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_explanation::Explanation>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_explanation::Explanation>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Explanation(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: deleted accounts (UD-17)
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::DeletedAccount(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_deleted_account::DeletedAccount>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::DeletedAccount(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<VacationResponse>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<VacationResponse>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::VacationResponse(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Principal>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Principal>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Principal(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Quota>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Quota>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Quota(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Blob>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Blob>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Blob(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<ContactCard>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<ContactCard>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ContactCard(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<AddressBook>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<AddressBook>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::AddressBook(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<Registry>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<Registry>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Registry(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<Email>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<Email>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Email(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<Mailbox>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<Mailbox>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Mailbox(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<Identity>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<Identity>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Identity(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<EmailSubmission>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<EmailSubmission>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::EmailSubmission(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<PushSubscription>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<PushSubscription>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::PushSubscription(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<Sieve>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<Sieve>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Sieve(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<VacationResponse>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<VacationResponse>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::VacationResponse(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<AddressBook>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<AddressBook>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AddressBook(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<ContactCard>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<ContactCard>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ContactCard(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<Registry>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<Registry>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Registry(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<Email>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<Email>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::Email(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<Mailbox>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<Mailbox>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::Mailbox(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<Thread>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<Thread>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::Thread(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<Identity>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<Identity>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::Identity(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<EmailSubmission>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<EmailSubmission>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::EmailSubmission(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<Quota>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<Quota>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::Quota(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ChangesResponse<AddressBook>> for ResponseMethod<'x> {
|
|
fn from(value: ChangesResponse<AddressBook>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::AddressBook(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<CopyResponse<Email>> for ResponseMethod<'x> {
|
|
fn from(value: CopyResponse<Email>) -> Self {
|
|
ResponseMethod::Copy(CopyResponseMethod::Email(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<CopyBlobResponse> for ResponseMethod<'x> {
|
|
fn from(value: CopyBlobResponse) -> Self {
|
|
ResponseMethod::Copy(CopyResponseMethod::Blob(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<CopyResponse<ContactCard>> for ResponseMethod<'x> {
|
|
fn from(value: CopyResponse<ContactCard>) -> Self {
|
|
ResponseMethod::Copy(CopyResponseMethod::ContactCard(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ImportEmailResponse> for ResponseMethod<'x> {
|
|
fn from(value: ImportEmailResponse) -> Self {
|
|
ResponseMethod::ImportEmail(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ParseResponse<Email>> for ResponseMethod<'x> {
|
|
fn from(value: ParseResponse<Email>) -> Self {
|
|
ResponseMethod::Parse(ParseResponseMethod::Email(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ParseResponse<ContactCard>> for ResponseMethod<'x> {
|
|
fn from(value: ParseResponse<ContactCard>) -> Self {
|
|
ResponseMethod::Parse(ParseResponseMethod::ContactCard(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<QueryChangesResponse> for ResponseMethod<'x> {
|
|
fn from(value: QueryChangesResponse) -> Self {
|
|
ResponseMethod::QueryChanges(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<QueryResponse> for ResponseMethod<'x> {
|
|
fn from(value: QueryResponse) -> Self {
|
|
ResponseMethod::Query(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetSearchSnippetResponse> for ResponseMethod<'x> {
|
|
fn from(value: GetSearchSnippetResponse) -> Self {
|
|
ResponseMethod::SearchSnippet(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<ValidateSieveScriptResponse> for ResponseMethod<'x> {
|
|
fn from(value: ValidateSieveScriptResponse) -> Self {
|
|
ResponseMethod::ValidateScript(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<BlobLookupResponse> for ResponseMethod<'x> {
|
|
fn from(value: BlobLookupResponse) -> Self {
|
|
ResponseMethod::LookupBlob(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<BlobUploadResponse> for ResponseMethod<'x> {
|
|
fn from(value: BlobUploadResponse) -> Self {
|
|
ResponseMethod::UploadBlob(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<Value<'x, Null, Null>> for ResponseMethod<'x> {
|
|
fn from(value: Value<'x, Null, Null>) -> Self {
|
|
ResponseMethod::Echo(value)
|
|
}
|
|
}
|
|
|
|
impl<'x> From<MethodErrorWrapper> for ResponseMethod<'x> {
|
|
fn from(value: MethodErrorWrapper) -> Self {
|
|
ResponseMethod::Error(value)
|
|
}
|
|
}
|
|
|
|
impl From<GetResponse<FileNode>> for ResponseMethod<'_> {
|
|
fn from(response: GetResponse<FileNode>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::FileNode(response))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<FileNode>> for ResponseMethod<'_> {
|
|
fn from(response: SetResponse<FileNode>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::FileNode(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<ChangesResponse<FileNode>> for ResponseMethod<'_> {
|
|
fn from(response: ChangesResponse<FileNode>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::FileNode(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<GetAvailabilityResponse> for ResponseMethod<'_> {
|
|
fn from(response: GetAvailabilityResponse) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::PrincipalAvailability(response))
|
|
}
|
|
}
|
|
|
|
impl From<GetResponse<Calendar>> for ResponseMethod<'_> {
|
|
fn from(response: GetResponse<Calendar>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Calendar(response))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<Calendar>> for ResponseMethod<'_> {
|
|
fn from(response: SetResponse<Calendar>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Calendar(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<ChangesResponse<CalendarEvent>> for ResponseMethod<'_> {
|
|
fn from(response: ChangesResponse<CalendarEvent>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::CalendarEvent(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<ChangesResponse<CalendarEventNotification>> for ResponseMethod<'_> {
|
|
fn from(response: ChangesResponse<CalendarEventNotification>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::CalendarEventNotification(Box::new(
|
|
response,
|
|
)))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<CalendarEvent>> for ResponseMethod<'_> {
|
|
fn from(response: SetResponse<CalendarEvent>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::CalendarEvent(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<ParticipantIdentity>> for ResponseMethod<'_> {
|
|
fn from(response: SetResponse<ParticipantIdentity>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ParticipantIdentity(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<GetResponse<ParticipantIdentity>> for ResponseMethod<'_> {
|
|
fn from(response: GetResponse<ParticipantIdentity>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ParticipantIdentity(response))
|
|
}
|
|
}
|
|
|
|
impl From<ChangesResponse<ShareNotification>> for ResponseMethod<'_> {
|
|
fn from(response: ChangesResponse<ShareNotification>) -> Self {
|
|
ResponseMethod::Changes(ChangesResponseMethod::ShareNotification(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<ShareNotification>> for ResponseMethod<'_> {
|
|
fn from(response: SetResponse<ShareNotification>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ShareNotification(Box::new(response)))
|
|
}
|
|
}
|
|
|
|
impl From<GetResponse<ShareNotification>> for ResponseMethod<'_> {
|
|
fn from(response: GetResponse<ShareNotification>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ShareNotification(response))
|
|
}
|
|
}
|
|
|
|
impl From<GetResponse<CalendarEvent>> for ResponseMethod<'_> {
|
|
fn from(response: GetResponse<CalendarEvent>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::CalendarEvent(response))
|
|
}
|
|
}
|
|
|
|
impl From<ParseResponse<CalendarEvent>> for ResponseMethod<'_> {
|
|
fn from(value: ParseResponse<CalendarEvent>) -> Self {
|
|
ResponseMethod::Parse(ParseResponseMethod::CalendarEvent(value))
|
|
}
|
|
}
|
|
|
|
impl From<CopyResponse<CalendarEvent>> for ResponseMethod<'_> {
|
|
fn from(value: CopyResponse<CalendarEvent>) -> Self {
|
|
ResponseMethod::Copy(CopyResponseMethod::CalendarEvent(value))
|
|
}
|
|
}
|
|
|
|
impl From<CopyResponse<FileNode>> for ResponseMethod<'_> {
|
|
fn from(value: CopyResponse<FileNode>) -> Self {
|
|
ResponseMethod::Copy(CopyResponseMethod::FileNode(value))
|
|
}
|
|
}
|
|
|
|
impl From<CalendarEventNotificationGetResponse> for ResponseMethod<'_> {
|
|
fn from(value: CalendarEventNotificationGetResponse) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::CalendarEventNotification(value))
|
|
}
|
|
}
|
|
|
|
impl From<SetResponse<CalendarEventNotification>> for ResponseMethod<'_> {
|
|
fn from(value: SetResponse<CalendarEventNotification>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::CalendarEventNotification(Box::new(
|
|
value,
|
|
)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: the audit log
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_audit::AuditEvent>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_audit::AuditEvent>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::AuditEvent(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_audit::AuditSettings>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_audit::AuditSettings>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::AuditSettings(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_audit::AuditSettings>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_audit::AuditSettings>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AuditSettings(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_audit::AuditExport>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_audit::AuditExport>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AuditExport(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_audit::AuditVerification>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_audit::AuditVerification>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AuditVerification(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: account lock with delegation
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_account_lock::AccountLock>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_account_lock::AccountLock>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::AccountLock(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_account_lock::AccountLock>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_account_lock::AccountLock>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::AccountLock(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: legal hold
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_held_message::HeldMessage>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_held_message::HeldMessage>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::HeldMessage(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_held_message::HeldMessage>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_held_message::HeldMessage>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::HeldMessage(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: the deliverability check
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::DeliverabilityReport(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_deliverability_report::DeliverabilityReport>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::DeliverabilityReport(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::DeliverabilitySettings(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_deliverability_settings::DeliverabilitySettings>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::DeliverabilitySettings(Box::new(value)))
|
|
}
|
|
}
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ScheduledReport(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_scheduled_report::ScheduledReport>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ScheduledReport(Box::new(value)))
|
|
}
|
|
}
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::ScheduledReportSettings(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_scheduled_report_settings::ScheduledReportSettings>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::ScheduledReportSettings(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: accepted security to-do items
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(value: GetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::SecurityAcceptance(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>>
|
|
for ResponseMethod<'x>
|
|
{
|
|
fn from(value: SetResponse<crate::object::inbuxa_security_acceptance::SecurityAcceptance>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::SecurityAcceptance(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_mail_rule::MailRule>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_mail_rule::MailRule>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::MailRule(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_mail_rule::MailRule>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_mail_rule::MailRule>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::MailRule(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: journaling
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_journal_entry::JournalEntry>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_journal_entry::JournalEntry>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::JournalEntry(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_journal_entry::JournalExport>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_journal_entry::JournalExport>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::JournalExport(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_journal_entry::JournalVerification>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_journal_entry::JournalVerification>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::JournalVerification(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_journal::Journal>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_journal::Journal>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::Journal(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_journal::Journal>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_journal::Journal>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::Journal(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_legal_hold::LegalHold>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_legal_hold::LegalHold>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::LegalHold(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_legal_hold::LegalHold>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_legal_hold::LegalHold>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::LegalHold(Box::new(value)))
|
|
}
|
|
}
|
|
|
|
// inbuxa: legal hold exports
|
|
impl<'x> From<GetResponse<crate::object::inbuxa_hold_export::HoldExport>> for ResponseMethod<'x> {
|
|
fn from(value: GetResponse<crate::object::inbuxa_hold_export::HoldExport>) -> Self {
|
|
ResponseMethod::Get(GetResponseMethod::HoldExport(value))
|
|
}
|
|
}
|
|
|
|
impl<'x> From<SetResponse<crate::object::inbuxa_hold_export::HoldExport>> for ResponseMethod<'x> {
|
|
fn from(value: SetResponse<crate::object::inbuxa_hold_export::HoldExport>) -> Self {
|
|
ResponseMethod::Set(SetResponseMethod::HoldExport(Box::new(value)))
|
|
}
|
|
}
|