jsonrpsee_types/lib.rs
1// Copyright 2019-2021 Parity Technologies (UK) Ltd.
2//
3// Permission is hereby granted, free of charge, to any
4// person obtaining a copy of this software and associated
5// documentation files (the "Software"), to deal in the
6// Software without restriction, including without
7// limitation the rights to use, copy, modify, merge,
8// publish, distribute, sublicense, and/or sell copies of
9// the Software, and to permit persons to whom the Software
10// is furnished to do so, subject to the following
11// conditions:
12//
13// The above copyright notice and this permission notice
14// shall be included in all copies or substantial portions
15// of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25// DEALINGS IN THE SOFTWARE.
26
27//! JSON-RPC specific types.
28
29#![warn(missing_docs, missing_debug_implementations, missing_copy_implementations, unreachable_pub)]
30#![cfg_attr(not(test), warn(unused_crate_dependencies))]
31#![cfg_attr(docsrs, feature(doc_cfg))]
32
33extern crate alloc;
34
35/// JSON-RPC params related types.
36pub mod params;
37
38/// JSON-RPC request object related types
39pub mod request;
40
41/// JSON-RPC response object related types.
42pub mod response;
43
44/// JSON-RPC response error object related types.
45pub mod error;
46
47pub use error::{ErrorCode, ErrorObject, ErrorObjectOwned};
48pub use params::{Id, InvalidRequestId, Params, ParamsSequence, SubscriptionId, TwoPointZero};
49pub use request::{InvalidRequest, Notification, NotificationSer, Request, RequestSer};
50pub use response::{Response, ResponsePayload, SubscriptionPayload, SubscriptionResponse, Success as ResponseSuccess};