pub struct JoinRequestStatusResponseBody {
pub request_id: Uuid,
pub status: String,
pub needs: Vec<String>,
pub presentation_definition: Option<Value>,
pub code: Option<String>,
pub reason: Option<String>,
pub decided_at: Option<DateTime<Utc>>,
}Expand description
Status response: the request’s lifecycle, plus (when deferred) what
the applicant must present next.
Fields§
§request_id: Uuid§status: Stringpending | deferred | approved | rejected | withdrawn.
needs: Vec<String>Outstanding requirements — present only for a deferred request.
presentation_definition: Option<Value>The DCQL the applicant should answer over present — present only
for a deferred request.
code: Option<String>Stable refusal code — present only for a rejected request.
A policy auto-deny carries the code the join.rego deny verdict
returned; an admin reject carries ADMIN_REJECT_CODE, since there is
no policy verdict to source one from.
reason: Option<String>Human-readable elaboration of the refusal — present only for a
rejected request, and only when the decider supplied one (the policy’s
optional reason, or the operator’s words on an admin reject).
decided_at: Option<DateTime<Utc>>When the decision was taken.
Deliberately not the response document’s issuedAt, which is when
this document was produced. For an admin reject the two diverge
arbitrarily — the applicant may poll days after the decision — so the
decision’s own timestamp has to travel with it.
None on a request decided before this field existed.
Trait Implementations§
Source§impl Clone for JoinRequestStatusResponseBody
impl Clone for JoinRequestStatusResponseBody
Source§fn clone(&self) -> JoinRequestStatusResponseBody
fn clone(&self) -> JoinRequestStatusResponseBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more