pub enum VerdictEffect {
Allow,
Deny,
Refer,
RequestMore,
}Expand description
The policy effect of a ceremony decision. A deny means the policy
refused a well-formed, verified request — it is NOT how framework
errors (invalid VIC, expired, malformed) are signalled; those are
trust-task-error documents (see the module docs).
Serialises lowerCamelCase — requestMore, not request_more — because
a verdict effect is a specification-defined decision value, which
SPEC §4.10 rule 4 says is lowerCamelCase, and
vtc/_shared/0.1/ceremony#VerdictEffect enumerates it that way.
The snake_case form is kept as a deserialisation alias on purpose. Rego is
where verdicts are authored — operator-written policy returns
{"effect": "request_more", …} — and snake_case is that language’s idiom,
not a mistake to correct. The two vocabularies are allowed to differ; this
type is the boundary where the policy’s spelling becomes the wire’s, the
same split EndorsementRow and GenerationRow draw between storage and
wire.
Variants§
Allow
Admitted. with carries the granted role + obligations and the
host-added bundleRef (sealed credential pointer) where issuance
occurred.
Deny
Policy refused. with carries code + reason.
Refer
Parked for a human/quorum decision. with carries queue + reason.
RequestMore
More evidence required. with carries needs +
presentationDefinition; the applicant continues over present.
Trait Implementations§
Source§impl Clone for VerdictEffect
impl Clone for VerdictEffect
Source§fn clone(&self) -> VerdictEffect
fn clone(&self) -> VerdictEffect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for VerdictEffect
Source§impl Debug for VerdictEffect
impl Debug for VerdictEffect
Source§impl<'de> Deserialize<'de> for VerdictEffect
impl<'de> Deserialize<'de> for VerdictEffect
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerdictEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerdictEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for VerdictEffect
Source§impl PartialEq for VerdictEffect
impl PartialEq for VerdictEffect
Source§impl Serialize for VerdictEffect
impl Serialize for VerdictEffect
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for VerdictEffect
Auto Trait Implementations§
impl Freeze for VerdictEffect
impl RefUnwindSafe for VerdictEffect
impl Send for VerdictEffect
impl Sync for VerdictEffect
impl Unpin for VerdictEffect
impl UnsafeUnpin for VerdictEffect
impl UnwindSafe for VerdictEffect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.