conogram 0.2.19

An async wrapper for Telegram Bot API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

use crate::entities::revenue_withdrawal_state::RevenueWithdrawalState;

/// Describes a withdrawal transaction with Fragment.
///
/// API Reference: [link](https://core.telegram.org/bots/api/#transactionpartnerfragment)
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct TransactionPartnerFragment {
    /// *Optional*. State of the transaction if the transaction is outgoing
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub withdrawal_state: Option<RevenueWithdrawalState>,
}

// Divider: all content below this line will be preserved after code regen