cedar_policy/proto.rs
1/*
2 * Copyright Cedar Contributors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/// Protobuf structures for types in `cedar_policy_core` and `cedar_policy_validator`
18pub mod models {
19 mod cedar_policy_core {
20 #![allow(
21 missing_docs,
22 clippy::doc_markdown,
23 clippy::derive_partial_eq_without_eq,
24 clippy::module_name_repetitions
25 )]
26 include!(concat!(env!("OUT_DIR"), "/cedar_policy_core.rs"));
27 }
28 mod cedar_policy_validator {
29 #![allow(
30 missing_docs,
31 clippy::doc_markdown,
32 clippy::derive_partial_eq_without_eq
33 )]
34 include!(concat!(env!("OUT_DIR"), "/cedar_policy_validator.rs"));
35 }
36 pub use cedar_policy_core::*;
37 pub use cedar_policy_validator::*;
38}
39
40/// Conversions between proto types and `cedar_policy_core::ast` types (other than policy/policyset types)
41mod ast;
42
43/// Conversions between proto types and `cedar_policy_core::ast` policy/policyset types
44mod policy;
45
46/// Conversions between proto types and `cedar_policy_core::entities` types
47mod entities;
48
49/// Conversions between proto types and `cedar_policy_validator` types
50mod validator;
51
52/// Conversions between proto types and `cedar_policy::api` types
53mod api;
54
55/// `Protobuf` trait and associated utilities
56pub mod traits;