#![doc(alias = "channel.poll")]
use super::{EventSubscription, EventType};
use crate::types;
use serde_derive::{Deserialize, Serialize};
pub mod begin;
pub mod end;
pub mod progress;
#[doc(inline)]
pub use begin::{ChannelPollBeginV1, ChannelPollBeginV1Payload};
#[doc(inline)]
pub use end::{ChannelPollEndV1, ChannelPollEndV1Payload};
#[doc(inline)]
pub use progress::{ChannelPollProgressV1, ChannelPollProgressV1Payload};
#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "deny_unknown_fields", serde(deny_unknown_fields))]
#[non_exhaustive]
pub struct BitsVoting {
pub amount_per_vote: i64,
pub is_enabled: bool,
}
#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "deny_unknown_fields", serde(deny_unknown_fields))]
#[non_exhaustive]
pub struct ChannelPointsVoting {
pub amount_per_vote: i64,
pub is_enabled: bool,
}