Object

Trait Object 

Source
pub trait Object {
    type Id;

    // Required methods
    fn id(&self) -> Self::Id;
    fn object(&self) -> &'static str;
}
Expand description

Implemented by types which represent stripe objects.

Required Associated Types§

Source

type Id

The canonical id type for this object.

Required Methods§

Source

fn id(&self) -> Self::Id

The id of the object.

Source

fn object(&self) -> &'static str

The object’s type, typically represented in wire format as the object property.

Implementors§

Source§

impl Object for BalanceTransactionSourceUnion

Source§

impl Object for PaymentSource

Source§

impl Object for PayoutDestinationUnion

Source§

impl Object for Account

Available on crate feature connect only.
Source§

type Id = ()

Source§

impl Object for Application

Available on crate feature connect only.
Source§

impl Object for ApplicationFee

Available on crate feature connect only.
Source§

impl Object for ApplicationFeeRefund

Available on crate feature connect only.
Source§

impl Object for Balance

Source§

type Id = ()

Source§

impl Object for BalanceTransaction

Source§

impl Object for BankAccount

Source§

impl Object for BillingPortalConfiguration

Available on crate feature billing only.
Source§

impl Object for BillingPortalSession

Available on crate feature billing only.
Source§

impl Object for Card

Source§

impl Object for CashBalance

Source§

type Id = ()

Source§

impl Object for Charge

Source§

impl Object for CheckoutSession

Available on crate feature checkout only.
Source§

impl Object for CheckoutSessionItem

Available on crate feature checkout only.
Source§

impl Object for ConnectCollectionTransfer

Available on crate feature connect only.
Source§

impl Object for Coupon

Available on crate feature billing only.
Source§

impl Object for CreditNote

Available on crate feature billing only.
Source§

impl Object for CreditNoteLineItem

Available on crate feature billing only.
Source§

impl Object for Customer

Source§

impl Object for CustomerBalanceTransaction

Available on crate feature billing only.
Source§

impl Object for CustomerSession

Source§

type Id = ()

Source§

impl Object for Discount

Available on crate feature billing only.
Source§

impl Object for Dispute

Source§

impl Object for EphemeralKey

Source§

impl Object for Event

Available on crate feature events only.
Source§

impl Object for File

Source§

impl Object for Invoice

Available on crate feature billing only.
Source§

impl Object for InvoiceItem

Available on crate feature billing only.
Source§

impl Object for InvoiceLineItem

Available on crate feature billing only.
Source§

impl Object for IssuingAuthorization

Available on crate feature issuing only.
Source§

impl Object for IssuingCard

Available on crate feature issuing only.
Source§

impl Object for IssuingCardholder

Available on crate feature issuing only.
Source§

impl Object for IssuingDispute

Available on crate feature issuing only.
Source§

impl Object for IssuingToken

Available on crate feature issuing only.
Source§

impl Object for IssuingTransaction

Available on crate feature issuing only.
Source§

type Id = ()

Source§

impl Object for Mandate

Source§

impl Object for PaymentIntent

Source§

impl Object for PaymentMethod

Source§

impl Object for Payout

Source§

impl Object for Person

Available on crate feature connect only.
Source§

impl Object for Plan

Available on crate feature billing only.
Source§

impl Object for PlatformTaxFee

Source§

impl Object for Price

Source§

impl Object for Product

Source§

impl Object for PromotionCode

Available on crate feature billing only.
Source§

impl Object for Quote

Available on crate feature billing only.
Source§

impl Object for Refund

Source§

impl Object for ReserveTransaction

Source§

impl Object for Review

Available on crate feature fraud only.
Source§

impl Object for Rule

Source§

impl Object for ScheduledQueryRun

Available on crate feature sigma only.
Source§

impl Object for SetupAttempt

Source§

impl Object for SetupIntent

Source§

impl Object for ShippingRate

Source§

impl Object for Source

Source§

impl Object for Subscription

Available on crate feature billing only.
Source§

impl Object for SubscriptionItem

Available on crate feature billing only.
Source§

impl Object for SubscriptionSchedule

Available on crate feature billing only.
Source§

impl Object for TaxCalculation

Available on crate feature tax-calculation only.
Source§

impl Object for TaxCalculationLineItem

Available on crate feature tax-calculation only.
Source§

impl Object for TaxCode

Source§

impl Object for TaxDeductedAtSource

Source§

impl Object for TaxId

Available on crate feature billing only.
Source§

impl Object for TaxRate

Available on crate feature billing only.
Source§

impl Object for TerminalConfiguration

Available on crate feature terminal only.
Source§

impl Object for TerminalConnectionToken

Available on crate feature terminal only.
Source§

type Id = ()

Source§

impl Object for TerminalLocation

Available on crate feature terminal only.
Source§

impl Object for TerminalReader

Available on crate feature terminal only.
Source§

impl Object for TestHelpersTestClock

Source§

impl Object for Token

Source§

impl Object for Topup

Available on crate feature connect only.
Source§

impl Object for Transfer

Available on crate feature connect only.
Source§

impl Object for TransferReversal

Available on crate feature connect only.
Source§

impl Object for UsageRecord

Available on crate feature billing only.
Source§

impl Object for UsageRecordSummary

Available on crate feature billing only.
Source§

impl Object for WebhookEndpoint

Available on crate feature webhook-endpoints only.