Import upstream v0.16.22, stripped
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.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
|
||||
*/
|
||||
pub use crate::jmap::IntoValue;
|
||||
pub use crate::jmap::JmapValue;
|
||||
pub use crate::jmap::MaybeUnpatched;
|
||||
pub use crate::jmap::PatchResult;
|
||||
pub use crate::jmap::RegistryJsonEnumPatch;
|
||||
pub use crate::jmap::{
|
||||
JsonPointerPatch, RegistryJsonPatch, RegistryJsonPropertyPatch, patch::object_type,
|
||||
};
|
||||
pub use crate::pickle::Pickle;
|
||||
pub use crate::schema::enums::*;
|
||||
pub use crate::schema::properties::*;
|
||||
pub use crate::schema::structs::*;
|
||||
pub use crate::types::EnumImpl;
|
||||
pub use crate::types::ObjectImpl;
|
||||
pub use crate::types::datetime::UTCDateTime;
|
||||
pub use crate::types::duration::Duration;
|
||||
pub use crate::types::error::*;
|
||||
pub use crate::types::float::Float;
|
||||
pub use crate::types::index::{IndexBuilder, IndexSchema, IndexSchemaType, IndexSchemaValueType};
|
||||
pub use crate::types::ipaddr::IpAddr;
|
||||
pub use crate::types::ipmask::IpAddrOrMask;
|
||||
pub use crate::types::list::List;
|
||||
pub use crate::types::map::Map;
|
||||
pub use crate::types::socketaddr::SocketAddr;
|
||||
pub use crate::types::string::StringValidator;
|
||||
pub use serde::{Deserialize, Serialize};
|
||||
pub use std::borrow::Cow;
|
||||
pub use std::str::FromStr;
|
||||
pub use types::blob::BlobId;
|
||||
pub use types::id::Id;
|
||||
pub use utils::map::vec_map::VecMap;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Object {
|
||||
pub inner: ObjectInner,
|
||||
pub revision: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ExpressionContext<'x> {
|
||||
pub expr: &'x Expression,
|
||||
pub default: Option<Expression>,
|
||||
pub property: Property,
|
||||
pub allowed_variables: &'static [ExpressionVariable],
|
||||
pub allowed_constants: &'static [ExpressionConstant],
|
||||
}
|
||||
|
||||
pub const OBJ_SINGLETON: u64 = 1;
|
||||
pub const OBJ_SEQ_ID: u64 = 1 << 1;
|
||||
pub const OBJ_FILTER_ACCOUNT: u64 = 1 << 2;
|
||||
pub const OBJ_FILTER_TENANT: u64 = 1 << 3;
|
||||
|
||||
pub const MASKED_PASSWORD: &str = "****";
|
||||
Reference in New Issue
Block a user