pub struct GeneratedMethodPolicyRow {
pub service: &'static str,
pub leaf_path: &'static [u16],
pub symbolic_path: &'static str,
pub scope_action: &'static str,
pub scope_exempt: bool,
pub authentication: AuthenticationRequirement,
pub signature_policy: SignaturePolicy,
pub mutation_semantics: Option<MutationSemantics>,
pub transitional_label: SecurityLabel,
pub target_label: SecurityLabel,
pub public_reason: Option<&'static str>,
}Expand description
One generated method-policy row (v16 §6.1).
Rows are emitted by generate_rpc_service! from the same leaf-tree walk
that produces the service’s signed-body decoder, so the decoder can never
derive a leaf the inventory does not list and vice versa. They are
aggregated across all linked service crates through inventory and
installed once at startup by install_generated_method_policy.
Fields§
§service: &'static strCanonical service domain (the dispatcher’s RequestService::name).
leaf_path: &'static [u16]Full numeric union-discriminant chain from the service root union.
symbolic_path: &'static strDotted human-readable path — review metadata, never a lookup key.
scope_action: &'static str$scope/$capability action; empty for $dispatchPublic leaves and
for $dispatchMac leaves whose control-plane scope is explicitly
exempted ($scopeExempt — the gate is a different mechanism, e.g. a
CA-signed JWT attestation, documented in the schema).
scope_exempt: boolWhether the leaf’s control-plane scope is $scopeExempt-exempted. The
DISPATCH floor is unaffected (a $scopeExempt + $dispatchMac leaf
still requires a credential); this records why scope_action is empty
on a credential-required row.
authentication: AuthenticationRequirementWhether the leaf admits the Unauthenticated disposition.
signature_policy: SignaturePolicyThe signing topology the leaf requires.
mutation_semantics: Option<MutationSemantics>The application mutation policy an effectful leaf declares (v16 §4.8).
None means no declared application effect, including ordinary reads.
transitional_label: SecurityLabelThe migration label: always system low while the transitional column is selected (v16 §7.3); deleted after the target flip.
target_label: SecurityLabelThe operator-reviewable target label parsed from $dispatchMac, or
exactly system low for a $dispatchPublic leaf.
public_reason: Option<&'static str>The audited reason a publicly dispatchable leaf is public.
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedMethodPolicyRow
impl Clone for GeneratedMethodPolicyRow
Source§fn clone(&self) -> GeneratedMethodPolicyRow
fn clone(&self) -> GeneratedMethodPolicyRow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for GeneratedMethodPolicyRow
impl RefUnwindSafe for GeneratedMethodPolicyRow
impl Send for GeneratedMethodPolicyRow
impl Sync for GeneratedMethodPolicyRow
impl Unpin for GeneratedMethodPolicyRow
impl UnsafeUnpin for GeneratedMethodPolicyRow
impl UnwindSafe for GeneratedMethodPolicyRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more