#[non_exhaustive]pub enum ScopeOrBundle {
Scope(Scope),
Bundle(BundleName),
}Expand description
A single grant entry — what the grant table stores per row. Mint expands
the Bundle variants against the bundle table; the
Scope variants pass through.
Wire format is an externally-tagged JSON object — {"scope": "cloud:deploy"}
or {"bundle": "camp-operator"} — so a row can be persisted, audited, and
re-loaded without losing the distinction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scope(Scope)
Bundle(BundleName)
Trait Implementations§
Source§impl Clone for ScopeOrBundle
impl Clone for ScopeOrBundle
Source§impl Debug for ScopeOrBundle
impl Debug for ScopeOrBundle
Source§impl<'de> Deserialize<'de> for ScopeOrBundle
impl<'de> Deserialize<'de> for ScopeOrBundle
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 ScopeOrBundle
Source§impl From<BundleName> for ScopeOrBundle
impl From<BundleName> for ScopeOrBundle
Source§fn from(b: BundleName) -> Self
fn from(b: BundleName) -> Self
Converts to this type from the input type.
Source§impl From<Scope> for ScopeOrBundle
impl From<Scope> for ScopeOrBundle
Source§impl PartialEq for ScopeOrBundle
impl PartialEq for ScopeOrBundle
Source§impl Serialize for ScopeOrBundle
impl Serialize for ScopeOrBundle
impl StructuralPartialEq for ScopeOrBundle
Auto Trait Implementations§
impl Freeze for ScopeOrBundle
impl RefUnwindSafe for ScopeOrBundle
impl Send for ScopeOrBundle
impl Sync for ScopeOrBundle
impl Unpin for ScopeOrBundle
impl UnsafeUnpin for ScopeOrBundle
impl UnwindSafe for ScopeOrBundle
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