/*
* JSON Ledger API HTTP endpoints
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.3.0-SNAPSHOT
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLedgerEndResponse {
/// It will always be a non-negative integer. If zero, the participant view of the ledger is empty. If positive, the absolute offset of the ledger as viewed by the participant.
#[serde(rename = "offset")]
pub offset: i64,
}
impl GetLedgerEndResponse {
pub fn new(offset: i64) -> GetLedgerEndResponse {
GetLedgerEndResponse {
offset,
}
}
}