jortt 0.1.0

Async Rust SDK for the Jortt API with typed modules, hybrid OAuth helpers, and raw operation escape hatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Ledger account models.

use serde::{Deserialize, Serialize};

use super::common::ListEnvelope;

/// Ledger account that can be associated with invoice line items.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct LedgerAccount {
    /// Ledger account id.
    pub id: String,
    /// Display name.
    #[serde(default)]
    pub name: Option<String>,
}

/// List ledger accounts response.
pub type ListLedgerAccountsResponse = ListEnvelope<LedgerAccount>;