1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
//! Fundamentum's HTTP(API) SDK
//!
//! # Getting Started
//!
//! To get started with the SDK, you'll need to install Rust. You can follow the instructions on the official Rust website: [Install Rust](https://www.rust-lang.org/tools/install).
//!
//! ## Example
//!
//!```ignore
//!use fundamentum_sdk_api::client::{config::Configuration, sdk_api::SdkApi};
//!
//! #[tokio::main]
//! async fn main() {
//! let api_authorization_token = "api_token";
//! let token_file_string = "{ placeholder: \"\" }";
//!
//! let token_file: TokenFile =
//! serde_json::from_str(&token_file_string).expect("Wrong token file");
//!
//! let config = Configuration {
//! api_token: Some(api_authorization_token),
//! token_file: Some(token_file),
//! ..Configuration::default()
//! };
//!
//! let api = SdkApi::new(config);
//! api.status().await.unwrap();
//! }
//!```
//!
// clippy warning level lints
#![warn(
missing_docs,
clippy::pedantic,
clippy::nursery,
clippy::dbg_macro,
clippy::unwrap_used,
clippy::map_err_ignore,
clippy::unimplemented,
clippy::unreachable,
clippy::clone_on_ref_ptr,
clippy::create_dir,
clippy::exit,
clippy::filetype_is_file,
clippy::float_cmp_const,
clippy::indexing_slicing,
clippy::let_underscore_must_use,
clippy::lossy_float_literal,
clippy::pattern_type_mismatch,
clippy::string_slice,
clippy::try_err
)]
// clippy deny/error level lints, they always have quick fix that should be preferred
#![deny(
clippy::multiple_inherent_impl,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
clippy::self_named_module_files,
clippy::separated_literal_suffix,
clippy::str_to_string,
clippy::string_add,
clippy::string_to_string,
clippy::unnecessary_self_imports,
clippy::unneeded_field_pattern,
clippy::verbose_file_reads
)]
#![allow(
// allowed rules
clippy::module_name_repetitions,
clippy::similar_names
)]
pub mod client;
pub mod models;