pub enum ScopeParent<'a> {
Card(&'a PermissionCard),
Template(&'a PolymorphicPermissionCard),
Scope(&'a ScopeCard),
}Expand description
A parent of derive_scope: a persistent card, a template card or a
scope card.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ScopeParent<'a>
impl<'a> Clone for ScopeParent<'a>
impl<'a> Copy for ScopeParent<'a>
Source§impl<'a> Debug for ScopeParent<'a>
impl<'a> Debug for ScopeParent<'a>
Source§impl<'a> From<&'a PermissionCard> for ScopeParent<'a>
impl<'a> From<&'a PermissionCard> for ScopeParent<'a>
Source§fn from(card: &'a PermissionCard) -> Self
fn from(card: &'a PermissionCard) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PersistentCard> for ScopeParent<'a>
impl<'a> From<&'a PersistentCard> for ScopeParent<'a>
Source§fn from(card: &'a PersistentCard) -> Self
fn from(card: &'a PersistentCard) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PolymorphicPermissionCard> for ScopeParent<'a>
impl<'a> From<&'a PolymorphicPermissionCard> for ScopeParent<'a>
Source§fn from(card: &'a PolymorphicPermissionCard) -> Self
fn from(card: &'a PolymorphicPermissionCard) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ScopeCard> for ScopeParent<'a>
impl<'a> From<&'a ScopeCard> for ScopeParent<'a>
Source§impl<'a> From<&'a WalletCard> for ScopeParent<'a>
impl<'a> From<&'a WalletCard> for ScopeParent<'a>
Source§fn from(card: &'a WalletCard) -> Self
fn from(card: &'a WalletCard) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ScopeParent<'a>
impl<'a> RefUnwindSafe for ScopeParent<'a>
impl<'a> Send for ScopeParent<'a>
impl<'a> Sync for ScopeParent<'a>
impl<'a> Unpin for ScopeParent<'a>
impl<'a> UnsafeUnpin for ScopeParent<'a>
impl<'a> UnwindSafe for ScopeParent<'a>
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