pub struct EngineEgressPrepareResponseV2 {
pub schema_version: u32,
pub decision: EngineEgressAdmissionResponseV1,
pub prepared_body: Option<String>,
pub admission_receipt_digest: Option<Sha256Digest>,
}Expand description
Explicit opt-in wire contract for hosts that need to report transport
observations. The legacy egress-admit response remains V1 and unchanged.
Fields§
§schema_version: u32§decision: EngineEgressAdmissionResponseV1§prepared_body: Option<String>Exact UTF-8 JSON bytes to send. Hosts must send this string verbatim,
not reserialize decision.body (which could change the admitted bytes).
admission_receipt_digest: Option<Sha256Digest>Content-addressed preparation evidence; this is not a send claim.
Implementations§
Source§impl EngineEgressPrepareResponseV2
impl EngineEgressPrepareResponseV2
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EngineEgressPrepareResponseV2
impl<'de> Deserialize<'de> for EngineEgressPrepareResponseV2
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
impl StructuralPartialEq for EngineEgressPrepareResponseV2
Auto Trait Implementations§
impl Forget for EngineEgressPrepareResponseV2
impl Freeze for EngineEgressPrepareResponseV2where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<ContextDecisionV1>: Freeze,
PhantomData<QualityProbeKindV1>: Freeze,
impl Move for EngineEgressPrepareResponseV2
impl RefUnwindSafe for EngineEgressPrepareResponseV2
impl Send for EngineEgressPrepareResponseV2
impl Sync for EngineEgressPrepareResponseV2
impl Unpin for EngineEgressPrepareResponseV2
impl UnsafeUnpin for EngineEgressPrepareResponseV2where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<ContextDecisionV1>: UnsafeUnpin,
PhantomData<QualityProbeKindV1>: UnsafeUnpin,
impl UnwindSafe for EngineEgressPrepareResponseV2
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