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§
Required Methods§
Implementors§
Source§impl Object for PaymentSource
impl Object for PaymentSource
type Id = PaymentSourceId
Source§impl Object for PayoutDestinationUnion
impl Object for PayoutDestinationUnion
type Id = PayoutDestinationId
Source§impl Object for Application
Available on crate feature connect only.
impl Object for Application
Available on crate feature
connect only.type Id = ApplicationId
Source§impl Object for ApplicationFee
Available on crate feature connect only.
impl Object for ApplicationFee
Available on crate feature
connect only.type Id = ApplicationFeeId
Source§impl Object for ApplicationFeeRefund
Available on crate feature connect only.
impl Object for ApplicationFeeRefund
Available on crate feature
connect only.type Id = ApplicationFeeRefundId
Source§impl Object for BalanceTransaction
impl Object for BalanceTransaction
type Id = BalanceTransactionId
Source§impl Object for BankAccount
impl Object for BankAccount
type Id = BankAccountId
Source§impl Object for BillingPortalConfiguration
Available on crate feature billing only.
impl Object for BillingPortalConfiguration
Available on crate feature
billing only.Source§impl Object for BillingPortalSession
Available on crate feature billing only.
impl Object for BillingPortalSession
Available on crate feature
billing only.type Id = BillingPortalSessionId
Source§impl Object for CheckoutSession
Available on crate feature checkout only.
impl Object for CheckoutSession
Available on crate feature
checkout only.type Id = CheckoutSessionId
Source§impl Object for CheckoutSessionItem
Available on crate feature checkout only.
impl Object for CheckoutSessionItem
Available on crate feature
checkout only.type Id = CheckoutSessionItemId
Source§impl Object for ConnectCollectionTransfer
Available on crate feature connect only.
impl Object for ConnectCollectionTransfer
Available on crate feature
connect only.Source§impl Object for CreditNote
Available on crate feature billing only.
impl Object for CreditNote
Available on crate feature
billing only.type Id = CreditNoteId
Source§impl Object for CreditNoteLineItem
Available on crate feature billing only.
impl Object for CreditNoteLineItem
Available on crate feature
billing only.type Id = CreditNoteLineItemId
Source§impl Object for CustomerBalanceTransaction
Available on crate feature billing only.
impl Object for CustomerBalanceTransaction
Available on crate feature
billing only.Source§impl Object for EphemeralKey
impl Object for EphemeralKey
type Id = EphemeralKeyId
Source§impl Object for InvoiceItem
Available on crate feature billing only.
impl Object for InvoiceItem
Available on crate feature
billing only.type Id = InvoiceItemId
Source§impl Object for InvoiceLineItem
Available on crate feature billing only.
impl Object for InvoiceLineItem
Available on crate feature
billing only.type Id = InvoiceLineItemId
Source§impl Object for IssuingAuthorization
Available on crate feature issuing only.
impl Object for IssuingAuthorization
Available on crate feature
issuing only.type Id = IssuingAuthorizationId
Source§impl Object for IssuingCard
Available on crate feature issuing only.
impl Object for IssuingCard
Available on crate feature
issuing only.type Id = IssuingCardId
Source§impl Object for IssuingCardholder
Available on crate feature issuing only.
impl Object for IssuingCardholder
Available on crate feature
issuing only.type Id = IssuingCardholderId
Source§impl Object for IssuingDispute
Available on crate feature issuing only.
impl Object for IssuingDispute
Available on crate feature
issuing only.type Id = IssuingDisputeId
Source§impl Object for IssuingToken
Available on crate feature issuing only.
impl Object for IssuingToken
Available on crate feature
issuing only.type Id = IssuingTokenId
Source§impl Object for IssuingTransaction
Available on crate feature issuing only.
impl Object for IssuingTransaction
Available on crate feature
issuing only.type Id = IssuingTransactionId
Source§impl Object for PaymentIntent
impl Object for PaymentIntent
type Id = PaymentIntentId
Source§impl Object for PaymentLink
Available on crate feature checkout only.
impl Object for PaymentLink
Available on crate feature
checkout only.type Id = PaymentLinkId
Source§impl Object for PaymentMethod
impl Object for PaymentMethod
type Id = PaymentMethodId
Source§impl Object for PlatformTaxFee
impl Object for PlatformTaxFee
type Id = PlatformTaxFeeId
Source§impl Object for PromotionCode
Available on crate feature billing only.
impl Object for PromotionCode
Available on crate feature
billing only.type Id = PromotionCodeId
Source§impl Object for ReserveTransaction
impl Object for ReserveTransaction
type Id = ReserveTransactionId
Source§impl Object for ScheduledQueryRun
Available on crate feature sigma only.
impl Object for ScheduledQueryRun
Available on crate feature
sigma only.type Id = ScheduledQueryRunId
Source§impl Object for SetupAttempt
impl Object for SetupAttempt
type Id = SetupAttemptId
Source§impl Object for SetupIntent
impl Object for SetupIntent
type Id = SetupIntentId
Source§impl Object for ShippingRate
impl Object for ShippingRate
type Id = ShippingRateId
Source§impl Object for Subscription
Available on crate feature billing only.
impl Object for Subscription
Available on crate feature
billing only.type Id = SubscriptionId
Source§impl Object for SubscriptionItem
Available on crate feature billing only.
impl Object for SubscriptionItem
Available on crate feature
billing only.type Id = SubscriptionItemId
Source§impl Object for SubscriptionSchedule
Available on crate feature billing only.
impl Object for SubscriptionSchedule
Available on crate feature
billing only.type Id = SubscriptionScheduleId
Source§impl Object for TaxCalculation
Available on crate feature tax-calculation only.
impl Object for TaxCalculation
Available on crate feature
tax-calculation only.type Id = TaxCalculationId
Source§impl Object for TaxCalculationLineItem
Available on crate feature tax-calculation only.
impl Object for TaxCalculationLineItem
Available on crate feature
tax-calculation only.Source§impl Object for TaxDeductedAtSource
impl Object for TaxDeductedAtSource
type Id = TaxDeductedAtSourceId
Source§impl Object for TerminalConfiguration
Available on crate feature terminal only.
impl Object for TerminalConfiguration
Available on crate feature
terminal only.type Id = TerminalConfigurationId
Source§impl Object for TerminalConnectionToken
Available on crate feature terminal only.
impl Object for TerminalConnectionToken
Available on crate feature
terminal only.Source§impl Object for TerminalLocation
Available on crate feature terminal only.
impl Object for TerminalLocation
Available on crate feature
terminal only.type Id = TerminalLocationId
Source§impl Object for TerminalReader
Available on crate feature terminal only.
impl Object for TerminalReader
Available on crate feature
terminal only.type Id = TerminalReaderId
Source§impl Object for TestHelpersTestClock
impl Object for TestHelpersTestClock
type Id = TestHelpersTestClockId
Source§impl Object for TransferReversal
Available on crate feature connect only.
impl Object for TransferReversal
Available on crate feature
connect only.type Id = TransferReversalId
Source§impl Object for UsageRecord
Available on crate feature billing only.
impl Object for UsageRecord
Available on crate feature
billing only.type Id = UsageRecordId
Source§impl Object for UsageRecordSummary
Available on crate feature billing only.
impl Object for UsageRecordSummary
Available on crate feature
billing only.type Id = UsageRecordSummaryId
Source§impl Object for WebhookEndpoint
Available on crate feature webhook-endpoints only.
impl Object for WebhookEndpoint
Available on crate feature
webhook-endpoints only.