Skip to main content

UnionVariant

Struct UnionVariant 

Source
pub struct UnionVariant {
Show 18 fields pub name: String, pub type_name: String, pub description: String, pub scope: String, pub scope_exempt: bool, pub cli_hidden: bool, pub doc_example: String, pub vfs_path: String, pub vfs_kind: String, pub vfs_bulk: bool, pub vfs_hidden: bool, pub vfs_mac: String, pub dispatch_mac: String, pub dispatch_mac_present: bool, pub dispatch_public: String, pub dispatch_public_present: bool, pub mutation_semantics: String, pub mutation_semantics_present: bool,
}

Fields§

§name: String§type_name: String§description: String§scope: String

Authorization action from $scope/$capability (e.g. “write”). Empty only when scope_exempt is true (S3, #547): every other method must declare a scope or the build fails.

§scope_exempt: bool

Explicit, audited exemption from mandatory scope ($scopeExempt, S3 #547). True iff the method declares $scopeExempt("<reason>") instead of a scope.

§cli_hidden: bool

Whether this method is hidden from CLI (internal-only).

§doc_example: String

VFS usage example from $docExample annotation. Empty = no example.

§vfs_path: String

Mount-relative VFS path from $vfsPath (epic #539, T1). Empty = unset (the mount generator, T2, infers a default from scope + arg shape).

§vfs_kind: String

VFS node kind override from $vfsKind — the enumerant name (“file”/“dir”/“ctl”/“stream”/“query”). Empty = unset (kind is inferred).

§vfs_bulk: bool

$vfsBulk: read path returns raw mmap bytes, bypassing capnp (DMA path).

§vfs_hidden: bool

$vfsHidden: exclude this method from the generated mount.

§vfs_mac: String

$vfsMac annotation text — the MAC security label this generated node carries (#699 carrier (a); a property of the node’s type, derived at generation). Empty = unset ⇒ the node is unlabeled ⇒ deny ⇒ a genesis-coverage finding (no permissive default).

§dispatch_mac: String

$dispatchMac annotation text — the method’s target dispatch MAC label in the strict <level>:<assurance>[:<compartments>] grammar (v16 §6, WS-D). Empty = not declared (a leaf with neither dispatch annotation is a build error; a scoped dispatcher carries neither).

§dispatch_mac_present: bool

Whether $dispatchMac was present, including an explicitly empty value.

§dispatch_public: String

$dispatchPublic annotation text — the mandatory, reviewable reason a leaf may be dispatched unauthenticated (v16 §6). Empty = not declared. Expands to exactly system low; public is never inherited.

§dispatch_public_present: bool

Whether $dispatchPublic was present, including an explicitly empty value.

§mutation_semantics: String

$mutationSemantics declaration for a mutating leaf (v16 §4.8/§6.1). Empty only for read-class, scope-exempt, or dispatcher variants.

§mutation_semantics_present: bool

Whether $mutationSemantics was present, including an explicitly empty value.

Trait Implementations§

Source§

impl Debug for UnionVariant

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for UnionVariant

Source§

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 Serialize for UnionVariant

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,