#[non_exhaustive]pub struct Entitlement {
pub entitled: bool,
pub reason: LicenceReason,
}Expand description
The answer of the entitlement check (10.3): whether the receipt’s licence is the one the inheritance rule gives, with the reason. It is not a verification result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entitled: boolEntitled or not.
reason: LicenceReasonOne of the eight reasons; LicenceReason::entitled agrees with entitled.
Trait Implementations§
Source§impl Clone for Entitlement
impl Clone for Entitlement
impl Copy for Entitlement
Source§impl Debug for Entitlement
impl Debug for Entitlement
impl Eq for Entitlement
Source§impl Hash for Entitlement
impl Hash for Entitlement
Source§impl PartialEq for Entitlement
impl PartialEq for Entitlement
impl StructuralPartialEq for Entitlement
Auto Trait Implementations§
impl Freeze for Entitlement
impl RefUnwindSafe for Entitlement
impl Send for Entitlement
impl Sync for Entitlement
impl Unpin for Entitlement
impl UnsafeUnpin for Entitlement
impl UnwindSafe for Entitlement
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