rocketmq_model/lib.rs
1// Copyright 2023 The RocketMQ Rust Authors
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Runtime-neutral RocketMQ domain contracts.
16
17pub mod allocation;
18pub mod boundary_type;
19pub mod codec;
20pub mod common;
21pub mod consistent_hash;
22mod error;
23pub mod lite;
24pub mod message;
25mod model_contract_violation;
26pub mod result;
27pub mod time;
28pub mod topic;
29pub mod utils;
30pub mod version;
31
32pub use common::attribute::topic_attributes as TopicAttributes;
33pub use common::message::message_accessor as MessageAccessor;
34pub use common::pop_retry_policy::PopRetryPolicyOutcome;
35pub use model_contract_violation::ModelContractViolation;
36pub use utils::crc32_utils as CRC32Utils;
37pub use utils::message_utils as MessageUtils;