frontegg/lib.rs
1// Copyright Materialize, Inc. All rights reserved.
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 in the LICENSE file at the
6// root of this repository, or online at
7//
8// http://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//! [<img src="https://user-images.githubusercontent.com/23521087/168297221-5d346edc-3a55-4055-b355-281b4bd76963.png" width=180 align=right>](https://materialize.com)
17//! An async API client for the Frontegg user management service.
18//!
19//! # Maintainership
20//!
21//! This is not an official Frontegg product. This crate is developed by
22//! [Materialize], the streaming data warehouse. Contributions are encouraged:
23//!
24//! * [View source code](https://github.com/MaterializeInc/rust-frontegg)
25//! * [Report an issue](https://github.com/MaterializeInc/rust-frontegg/issues/new)
26//! * [Submit a pull request](https://github.com/MaterializeInc/rust-frontegg/compare)
27//!
28//! [Materialize]: https://materialize.com
29//!
30//! # See also
31//!
32//! Additional information is available in the [official Frontegg API
33//! documentation][official-api-docs].
34//!
35//! [official-api-docs]: https://docs.frontegg.com/reference/getting-started-with-your-api
36
37#[warn(missing_debug_implementations, missing_docs)]
38mod client;
39mod config;
40mod error;
41mod serde;
42mod util;
43
44pub use client::roles::{Permission, Role};
45pub use client::tenants::{Tenant, TenantRequest};
46pub use client::users::{
47 CreatedUser, User, UserListConfig, UserListPartConfig, UserRequest, WebhookTenantBinding,
48 WebhookUser,
49};
50pub use client::Client;
51pub use config::{ClientBuilder, ClientConfig};
52pub use error::{ApiError, Error};