#[non_exhaustive]pub enum UsageTrackingResource {
QueueId(String),
Unknown,
}Expand description
The usage details of the allotted budget.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
QueueId(String)
The queue ID.
Unknown
The Unknown variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl UsageTrackingResource
impl UsageTrackingResource
sourcepub fn as_queue_id(&self) -> Result<&String, &Self>
pub fn as_queue_id(&self) -> Result<&String, &Self>
sourcepub fn is_queue_id(&self) -> bool
pub fn is_queue_id(&self) -> bool
Returns true if this is a QueueId.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown variant.
Trait Implementations§
source§impl Clone for UsageTrackingResource
impl Clone for UsageTrackingResource
source§fn clone(&self) -> UsageTrackingResource
fn clone(&self) -> UsageTrackingResource
Returns a copy 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 UsageTrackingResource
impl Debug for UsageTrackingResource
source§impl PartialEq for UsageTrackingResource
impl PartialEq for UsageTrackingResource
source§fn eq(&self, other: &UsageTrackingResource) -> bool
fn eq(&self, other: &UsageTrackingResource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UsageTrackingResource
Auto Trait Implementations§
impl Freeze for UsageTrackingResource
impl RefUnwindSafe for UsageTrackingResource
impl Send for UsageTrackingResource
impl Sync for UsageTrackingResource
impl Unpin for UsageTrackingResource
impl UnwindSafe for UsageTrackingResource
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.