pub struct VerdictResponse {
pub request_id: Uuid,
pub verdict: Verdict,
}Expand description
The request/present success-response payload (rides inside the
#response TrustTask document, whose threadId carries the ceremony
thread). requestId is the persisted JoinRequest id.
Fields§
§request_id: Uuid§verdict: VerdictImplementations§
Source§impl VerdictResponse
impl VerdictResponse
Sourcepub fn allow(
request_id: Uuid,
role: Option<String>,
vmc: Option<Value>,
role_vec: Option<Value>,
) -> VerdictResponse
pub fn allow( request_id: Uuid, role: Option<String>, vmc: Option<Value>, role_vec: Option<Value>, ) -> VerdictResponse
allow verdict for an auto-admitted applicant, with the issued
credentials returned inline (REST) or omitted (DIDComm follow-up).
Sourcepub fn deny(
request_id: Uuid,
code: impl Into<String>,
reason: Option<String>,
) -> VerdictResponse
pub fn deny( request_id: Uuid, code: impl Into<String>, reason: Option<String>, ) -> VerdictResponse
deny verdict — the policy refused a well-formed, verified request.
code is the policy’s stable refusal code; reason its optional
elaboration. A constructor rather than a hand-assembled struct because
this shape now has two producers — the correlated ceremony reply and the
status poll’s projection — and hand-assembling it in both is how they
drift.
Trait Implementations§
Source§impl Clone for VerdictResponse
impl Clone for VerdictResponse
Source§fn clone(&self) -> VerdictResponse
fn clone(&self) -> VerdictResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerdictResponse
impl Debug for VerdictResponse
Source§impl<'de> Deserialize<'de> for VerdictResponse
impl<'de> Deserialize<'de> for VerdictResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerdictResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerdictResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for VerdictResponse
impl Serialize for VerdictResponse
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for VerdictResponse
impl RefUnwindSafe for VerdictResponse
impl Send for VerdictResponse
impl Sync for VerdictResponse
impl Unpin for VerdictResponse
impl UnsafeUnpin for VerdictResponse
impl UnwindSafe for VerdictResponse
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