pub struct Event {
pub created: i64,
pub data: Value,
pub id: EventId,
pub livemode: bool,
pub pending_webhooks: Option<i64>,
pub type_: EventType,
}Expand description
eventオブジェクト
For more details see <https://pay.jp/docs/api>.
Fields§
§created: i64このイベント作成時のUTCタイムスタンプ
data: Valueこのイベントに関連したリソースオブジェクト todo generics????
id: EventIdevnt_で始まる一意なオブジェクトを示す文字列
livemode: bool本番環境かどうか
pending_webhooks: Option<i64>設定されたURLへの通知が完了していない(2xxのレスポンスが得られていない)webhookの数.
type_: EventTypeこのイベントのタイプ。値の種類についてはこちら.
Trait Implementations§
Source§impl Deserialize for Event
impl Deserialize for Event
Source§impl ObjectDeser for Event
impl ObjectDeser for Event
type Builder = EventBuilder
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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