pub struct Entitlements<'app> { /* private fields */ }Expand description
What the app’s modules declare a plan may hold.
Implementations§
Source§impl<'app> Entitlements<'app>
impl<'app> Entitlements<'app>
pub fn iter(self) -> impl Iterator<Item = &'app EntitlementDeclaration>
Sourcepub fn written(self, written: &str) -> Option<&'app EntitlementDeclaration>
pub fn written(self, written: &str) -> Option<&'app EntitlementDeclaration>
.entitled(…) as written: a constant, a limit’s or quota’s .entitlement(), or
Entitlement::new("…"). A constant is matched by its name, as sofie gen does not
resolve imports.
Trait Implementations§
Source§impl<'app> Clone for Entitlements<'app>
impl<'app> Clone for Entitlements<'app>
impl<'app> Copy for Entitlements<'app>
Auto Trait Implementations§
impl<'app> Forget for Entitlements<'app>
impl<'app> Freeze for Entitlements<'app>
impl<'app> RefUnwindSafe for Entitlements<'app>
impl<'app> Send for Entitlements<'app>
impl<'app> Sync for Entitlements<'app>
impl<'app> Unpin for Entitlements<'app>
impl<'app> UnsafeUnpin for Entitlements<'app>
impl<'app> UnwindSafe for Entitlements<'app>
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