use crate::objects::channel_opening_transaction::ChannelOpeningTransaction;
use crate::objects::connection::Connection;
use crate::objects::page_info::PageInfo;
use serde::{Deserialize, Serialize};
use std::vec::Vec;
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct WithdrawalRequestToChannelOpeningTransactionsConnection {
#[serde(rename = "withdrawal_request_to_channel_opening_transactions_connection_count")]
pub count: i64,
#[serde(rename = "withdrawal_request_to_channel_opening_transactions_connection_page_info")]
pub page_info: PageInfo,
#[serde(rename = "withdrawal_request_to_channel_opening_transactions_connection_entities")]
pub entities: Vec<ChannelOpeningTransaction>,
#[serde(rename = "__typename")]
pub typename: String,
}
impl Connection for WithdrawalRequestToChannelOpeningTransactionsConnection {
fn get_count(&self) -> i64 {
self.count
}
fn get_page_info(&self) -> PageInfo {
self.page_info.clone()
}
fn type_name(&self) -> &'static str {
"WithdrawalRequestToChannelOpeningTransactionsConnection"
}
}
pub const FRAGMENT: &str = "
fragment WithdrawalRequestToChannelOpeningTransactionsConnectionFragment on WithdrawalRequestToChannelOpeningTransactionsConnection {
__typename
withdrawal_request_to_channel_opening_transactions_connection_count: count
withdrawal_request_to_channel_opening_transactions_connection_page_info: page_info {
__typename
page_info_has_next_page: has_next_page
page_info_has_previous_page: has_previous_page
page_info_start_cursor: start_cursor
page_info_end_cursor: end_cursor
}
withdrawal_request_to_channel_opening_transactions_connection_entities: entities {
id
}
}
";