pub struct Plan {
pub amount: i64,
pub billing_day: Option<i64>,
pub created: i64,
pub currency: String,
pub id: PlanId,
pub interval: PlanInterval,
pub livemode: bool,
pub metadata: Option<Value>,
pub name: String,
pub object: String,
pub trial_days: u32,
}Expand description
planオブジェクト
For more details see <https://pay.jp/docs/api>.
Fields§
§amount: i64プランの料金
billing_day: Option<i64>課金日。1から31の整数で指定可能。nullの場合は課金日を指定しない。
created: i64プラン作成時のタイムスタンプ
currency: String3文字のISOコード(現状 “jpy” のみサポート)
id: PlanIdpln_で始まる一意なオブジェクトを示す文字列
interval: PlanInterval課金の間隔。day, week, month, year のいずれか。
livemode: bool本番環境かどうか
metadata: Option<Value>キーバリューの任意データ
name: Stringプラン名
object: String“plan“の固定文字列
trial_days: u32トライアル期間の日数
Trait Implementations§
Source§impl Deserialize for Plan
impl Deserialize for Plan
Source§impl ObjectDeser for Plan
impl ObjectDeser for Plan
type Builder = PlanBuilder
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more