pub struct UsageRecordResult {
pub metering_record_id: Option<String>,
pub status: Option<String>,
pub usage_record: Option<UsageRecord>,
}
Expand description
A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.
Fields
metering_record_id: Option<String>
The MeteringRecordId is a unique identifier for this metering event.
status: Option<String>
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
-
Success- The UsageRecord was accepted and honored by BatchMeterUsage.
-
CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
-
DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.
usage_record: Option<UsageRecord>
The UsageRecord that was part of the BatchMeterUsage request.
Trait Implementations
sourceimpl Clone for UsageRecordResult
impl Clone for UsageRecordResult
sourcefn clone(&self) -> UsageRecordResult
fn clone(&self) -> UsageRecordResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UsageRecordResult
impl Debug for UsageRecordResult
sourceimpl Default for UsageRecordResult
impl Default for UsageRecordResult
sourcefn default() -> UsageRecordResult
fn default() -> UsageRecordResult
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UsageRecordResult
impl<'de> Deserialize<'de> for UsageRecordResult
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UsageRecordResult> for UsageRecordResult
impl PartialEq<UsageRecordResult> for UsageRecordResult
sourcefn eq(&self, other: &UsageRecordResult) -> bool
fn eq(&self, other: &UsageRecordResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UsageRecordResult) -> bool
fn ne(&self, other: &UsageRecordResult) -> bool
This method tests for !=
.
impl StructuralPartialEq for UsageRecordResult
Auto Trait Implementations
impl RefUnwindSafe for UsageRecordResult
impl Send for UsageRecordResult
impl Sync for UsageRecordResult
impl Unpin for UsageRecordResult
impl UnwindSafe for UsageRecordResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more