Crates.io | versa |
lib.rs | versa |
version | 0.17.3 |
source | src |
created_at | 2024-09-11 18:53:59.887663 |
updated_at | 2024-11-09 00:23:51.54338 |
description | Versa types and utilities for developing Versa client applications in Rust |
homepage | https://versa.org |
repository | https://github.com/versa-protocol/versa-rust |
max_upload_size | |
id | 1372181 |
size | 245,476 |
This crate is the official Versa SDK for Rust.
Versa uses semantic versioning to ensure the stability of its data model. The current schema version 1.7.0
You can use this crate broadly in two ways: either just referencing the type bindings, or to implement a custom client in Rust.
You will need to enable either the client_sender
or client_receiver
feature to leverage the corresponding client implementation.
There are broadly two kinds of types represented in this repository: Protocol Bindings and the Receipt Schema
This repository references the root JSON schema files, at https://github.com/versa-protocol/schema, to generate the Rust bindings for a Versa receipt.
Protocol Bindings represent the types of requests, responses, and error codes to be expected when developing client implementations according to the specifications of the Versa Protocol. These types are defined in the protocol
directory.
The Receipt struct represents the receipt and invoice data schemas to be handled when developing client implementations according to the specifications of the Versa Protocol. These types are defined in receipt.rs
This crate uses the typify crate to construct the receipt schema bindings from our json schema
client
Enables Versa client initialization with customer registration APIs
client_sender
Enables the Versa sending client implementation
client_receiver
Enables the Versa receiving client implementation
diesel
Implements diesel traits for MySQL on certain structs (UNSTABLE: Use with caution)