conogram/entities/
transaction_partner_fragment.rs

1use serde::{Deserialize, Serialize};
2
3use crate::entities::revenue_withdrawal_state::RevenueWithdrawalState;
4
5/// Describes a withdrawal transaction with Fragment.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#transactionpartnerfragment)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct TransactionPartnerFragment {
10    /// *Optional*. State of the transaction if the transaction is outgoing
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub withdrawal_state: Option<RevenueWithdrawalState>,
13}
14
15// Divider: all content below this line will be preserved after code regen