pub struct UsageIdentity {
pub metering_key: Option<String>,
pub subject: Option<String>,
pub key_class: Option<String>,
pub actor_key: Option<String>,
pub account_key: Option<String>,
pub consumer_key: Option<String>,
pub plan_code: Option<String>,
pub policy_version: Option<u32>,
}Expand description
Billing and policy identity copied from one verified session token. The legacy fields remain present during the compatibility window; V2 fields are emitted only as a complete signed tuple.
Fields§
§metering_key: Option<String>§subject: Option<String>§key_class: Option<String>§actor_key: Option<String>§account_key: Option<String>§consumer_key: Option<String>§plan_code: Option<String>§policy_version: Option<u32>Trait Implementations§
Source§impl Clone for UsageIdentity
impl Clone for UsageIdentity
Source§impl Debug for UsageIdentity
impl Debug for UsageIdentity
Source§impl Default for UsageIdentity
impl Default for UsageIdentity
Source§impl<'de> Deserialize<'de> for UsageIdentity
impl<'de> Deserialize<'de> for UsageIdentity
Source§fn 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
impl Eq for UsageIdentity
Source§impl Ord for UsageIdentity
impl Ord for UsageIdentity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UsageIdentity
impl PartialEq for UsageIdentity
Source§impl PartialOrd for UsageIdentity
impl PartialOrd for UsageIdentity
Source§impl Serialize for UsageIdentity
impl Serialize for UsageIdentity
impl StructuralPartialEq for UsageIdentity
Auto Trait Implementations§
impl Freeze for UsageIdentity
impl RefUnwindSafe for UsageIdentity
impl Send for UsageIdentity
impl Sync for UsageIdentity
impl Unpin for UsageIdentity
impl UnsafeUnpin for UsageIdentity
impl UnwindSafe for UsageIdentity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.