pub struct EntitlementDecision {
pub allowed: Option<bool>,
pub user_state: Option<EntitlementDecisionUserState>,
pub required_capability: Option<String>,
pub reason_code: Option<String>,
pub reason: Option<String>,
pub upgrade_reason: Option<String>,
pub limit: Option<i64>,
pub used: Option<i64>,
pub remaining: Option<i64>,
pub decision_ref: Option<String>,
pub source: Option<String>,
pub expires_at: Option<String>,
}Fields§
§allowed: Option<bool>§user_state: Option<EntitlementDecisionUserState>§required_capability: Option<String>§reason_code: Option<String>§reason: Option<String>§upgrade_reason: Option<String>§limit: Option<i64>§used: Option<i64>§remaining: Option<i64>§decision_ref: Option<String>§source: Option<String>§expires_at: Option<String>Implementations§
Source§impl EntitlementDecision
impl EntitlementDecision
pub fn new() -> EntitlementDecision
Trait Implementations§
Source§impl Clone for EntitlementDecision
impl Clone for EntitlementDecision
Source§fn clone(&self) -> EntitlementDecision
fn clone(&self) -> EntitlementDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntitlementDecision
impl Debug for EntitlementDecision
Source§impl Default for EntitlementDecision
impl Default for EntitlementDecision
Source§fn default() -> EntitlementDecision
fn default() -> EntitlementDecision
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntitlementDecision
impl<'de> Deserialize<'de> for EntitlementDecision
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
Source§impl PartialEq for EntitlementDecision
impl PartialEq for EntitlementDecision
Source§fn eq(&self, other: &EntitlementDecision) -> bool
fn eq(&self, other: &EntitlementDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntitlementDecision
impl Serialize for EntitlementDecision
impl StructuralPartialEq for EntitlementDecision
Auto Trait Implementations§
impl Freeze for EntitlementDecision
impl RefUnwindSafe for EntitlementDecision
impl Send for EntitlementDecision
impl Sync for EntitlementDecision
impl Unpin for EntitlementDecision
impl UnsafeUnpin for EntitlementDecision
impl UnwindSafe for EntitlementDecision
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