stripe/model/connect_embedded_payouts_features.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct ConnectEmbeddedPayoutsFeatures {
5 ///Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
6 pub edit_payout_schedule: bool,
7 ///Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
8 pub instant_payouts: bool,
9 ///Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
10 pub standard_payouts: bool,
11}
12impl std::fmt::Display for ConnectEmbeddedPayoutsFeatures {
13 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14 write!(f, "{}", serde_json::to_string(self).unwrap())
15 }
16}