pub struct ApprovalGate {
pub id: NonEmptyString,
pub reason: NonEmptyString,
pub gate_type: Option<String>,
pub summary: Option<JsonObject>,
}Expand description
Host protocol approval request gate carried by ResolutionRequest::Approval.
This is distinct from authority_proof.approval_gate, which records an
approval decision with gate_id, gate_type, and decision fields after
policy evaluation. Keep this shape aligned with the host resolution request
schema; do not use it as the authority-proof decision record.
Fields§
§id: NonEmptyString§reason: NonEmptyString§gate_type: Option<String>§summary: Option<JsonObject>Shallow summary payload. rust-resolution-payload-parity owns any
future deep typing for approval summaries.
Trait Implementations§
Source§impl Clone for ApprovalGate
impl Clone for ApprovalGate
Source§fn clone(&self) -> ApprovalGate
fn clone(&self) -> ApprovalGate
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 ApprovalGate
impl Debug for ApprovalGate
Source§impl<'de> Deserialize<'de> for ApprovalGate
impl<'de> Deserialize<'de> for ApprovalGate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for ApprovalGate
impl PartialEq for ApprovalGate
Source§fn eq(&self, other: &ApprovalGate) -> bool
fn eq(&self, other: &ApprovalGate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RunxSchema for ApprovalGate
impl RunxSchema for ApprovalGate
Source§fn json_schema() -> Value
fn json_schema() -> Value
The inlined JSON Schema for this type.
Source§impl Serialize for ApprovalGate
impl Serialize for ApprovalGate
impl StructuralPartialEq for ApprovalGate
Auto Trait Implementations§
impl Freeze for ApprovalGate
impl RefUnwindSafe for ApprovalGate
impl Send for ApprovalGate
impl Sync for ApprovalGate
impl Unpin for ApprovalGate
impl UnsafeUnpin for ApprovalGate
impl UnwindSafe for ApprovalGate
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