pub struct EngineEgressAdmissionResponseV1 {
pub schema_version: u32,
pub disposition: EgressDispositionV1,
pub body: Option<Value>,
pub refusal: Option<String>,
pub classification: Option<ClassificationV1>,
pub receipt: Option<ContextDecisionReceiptV1>,
}Fields§
§schema_version: u32§disposition: EgressDispositionV1§body: Option<Value>The body to forward; absent when the request is refused.
refusal: Option<String>Content-free refusal reason (reason codes only).
classification: Option<ClassificationV1>Most sensitive classification found in the request. Absent when the gateway inspected nothing (disabled, or an opaque payload): a host must then treat the request as unclassified, never as public.
receipt: Option<ContextDecisionReceiptV1>The decision receipt; absent when the gateway is disabled.
Implementations§
Source§impl EngineEgressAdmissionResponseV1
impl EngineEgressAdmissionResponseV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EngineEgressAdmissionResponseV1
impl<'de> Deserialize<'de> for EngineEgressAdmissionResponseV1
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 EngineEgressAdmissionResponseV1
Auto Trait Implementations§
impl Forget for EngineEgressAdmissionResponseV1
impl Freeze for EngineEgressAdmissionResponseV1where
*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 EngineEgressAdmissionResponseV1
impl RefUnwindSafe for EngineEgressAdmissionResponseV1
impl Send for EngineEgressAdmissionResponseV1
impl Sync for EngineEgressAdmissionResponseV1
impl Unpin for EngineEgressAdmissionResponseV1
impl UnsafeUnpin for EngineEgressAdmissionResponseV1where
*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 EngineEgressAdmissionResponseV1
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