Crate senhasegura_rs

Source
Expand description

§senhasegura-rs

Senhasegura API client for Rust.

See A2A - APIs.

§Example

use senhasegura_rs::{AccessProtectedInformationApi, SenhaseguraClient};

let base_url = "https://senhasegura.acme.com".parse()?;
let client_id = "client_id";
let client_secret = "client_secret";

let client = SenhaseguraClient::builder(base_url, client_id, client_secret).build()?;

// Access protected information
println!("{:#?}", client.access_protected_information(28).await?);

Re-exports§

pub use pam_core::*;

Modules§

pam_core
PAM Core APIs.

Structs§

ApiError
API error response.
Exception
Exception (i.e. “exception”) field.
Response
Response (i.e. “response”) field.
SenhaseguraClient
Senhasegura API client.
SenhaseguraClientBuilder
Senhasegura API client builder.
StatusCode
HTTP status code.

Enums§

Error
Errors that can occur when interacting with Senhasegura’s API.
ExceptionCode
Senhasegura API exception codes.

Traits§

SenhaseguraApi
Trait to interact with Senhasegura APIs.