pub struct CreateBillingMeter { /* private fields */ }
Expand description
Creates a billing meter.
Implementations§
Source§impl CreateBillingMeter
impl CreateBillingMeter
Sourcepub fn new(
default_aggregation: impl Into<CreateBillingMeterDefaultAggregation>,
display_name: impl Into<String>,
event_name: impl Into<String>,
) -> Self
pub fn new( default_aggregation: impl Into<CreateBillingMeterDefaultAggregation>, display_name: impl Into<String>, event_name: impl Into<String>, ) -> Self
Construct a new CreateBillingMeter
.
Sourcepub fn customer_mapping(
self,
customer_mapping: impl Into<CreateBillingMeterCustomerMapping>,
) -> Self
pub fn customer_mapping( self, customer_mapping: impl Into<CreateBillingMeterCustomerMapping>, ) -> Self
Fields that specify how to map a meter event to a customer.
Sourcepub fn event_time_window(
self,
event_time_window: impl Into<BillingMeterEventTimeWindow>,
) -> Self
pub fn event_time_window( self, event_time_window: impl Into<BillingMeterEventTimeWindow>, ) -> Self
The time window which meter events have been pre-aggregated for, if any.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn value_settings(
self,
value_settings: impl Into<CreateBillingMeterValueSettings>,
) -> Self
pub fn value_settings( self, value_settings: impl Into<CreateBillingMeterValueSettings>, ) -> Self
Fields that specify how to calculate a meter event’s value.
Source§impl CreateBillingMeter
impl CreateBillingMeter
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateBillingMeter
impl Clone for CreateBillingMeter
Source§fn clone(&self) -> CreateBillingMeter
fn clone(&self) -> CreateBillingMeter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateBillingMeter
impl Debug for CreateBillingMeter
Source§impl Serialize for CreateBillingMeter
impl Serialize for CreateBillingMeter
Source§impl StripeRequest for CreateBillingMeter
impl StripeRequest for CreateBillingMeter
Source§type Output = BillingMeter
type Output = BillingMeter
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateBillingMeter
impl RefUnwindSafe for CreateBillingMeter
impl Send for CreateBillingMeter
impl Sync for CreateBillingMeter
impl Unpin for CreateBillingMeter
impl UnwindSafe for CreateBillingMeter
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