Crate devintest_api

Crate devintest_api 

Source
Expand description

§Api SDK

The official Rust SDK for the Api.

§Getting Started

use devintest_api::prelude::*;

#[tokio::main]
async fn main() {
    let config = ClientConfig {
        ..Default::default()
    };
    let client = ApiClient::new(config).expect("Failed to build client");
    client
        .imdb
        .create_movie(
            &CreateMovieRequest {
                title: "title".to_string(),
                rating: 1.1,
            },
            None,
        )
        .await;
}

§Modules

  • api - Core API types and models
  • client - Client implementations
  • config - Configuration options
  • core - Core utilities and infrastructure
  • error - Error types and handling
  • prelude - Common imports for convenience

Re-exports§

pub use error::ApiError;
pub use api::*;
pub use client::*;
pub use config::*;
pub use core::*;

Modules§

api
API client and types for the Api
client
config
core
Core client infrastructure
error
prelude
Prelude module for convenient imports