Skip to main content

Crate revero

Crate revero 

Source
Expand description

§Revero Public API SDK

The official Rust SDK for the Revero Public API.

§Getting Started

use revero::prelude::*;

#[tokio::main]
async fn main() {
    let config = ClientConfig {
        username: Some("<username>".to_string()),
        password: Some("<password>".to_string()),
        ..Default::default()
    };
    let client = GeneratedReveroClient::new(config).expect("Failed to build client");
    client
        .oauth
        .get_oauth_authorization_server_metadata(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 error::BuildError;
pub use extensions::webhooks;
pub use extensions::Error;
pub use extensions::ReveroClient;
pub use extensions::ReveroClientOptions;
pub use extensions::Scope;
pub use extensions::WaitOptions;
pub use api::*;
pub use client::*;
pub use config::*;
pub use core::*;
pub use environment::*;

Modules§

api
API client and types for the Revero Public API
client
config
core
Core client infrastructure
environment
error
extensions
Stable, hand-written ergonomics layered over Fern-generated API types.
prelude
Prelude module for convenient imports