pub struct ContextDecisionV1 {
pub object: Sha256Digest,
pub disposition: ContextDispositionV1,
pub reason_codes: Vec<ReasonCodeV1>,
pub signals: Vec<DetectorSignalV1>,
pub required_transformations: Vec<TransformationKindV1>,
}Expand description
The gateway’s decision about one object. Anything but a plain Allow
must say why.
Fields§
§object: Sha256Digest§disposition: ContextDispositionV1§reason_codes: Vec<ReasonCodeV1>§signals: Vec<DetectorSignalV1>§required_transformations: Vec<TransformationKindV1>Implementations§
Source§impl ContextDecisionV1
impl ContextDecisionV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ContextDecisionV1
impl Clone for ContextDecisionV1
Source§impl Debug for ContextDecisionV1
impl Debug for ContextDecisionV1
Source§impl<'de> Deserialize<'de> for ContextDecisionV1
impl<'de> Deserialize<'de> for ContextDecisionV1
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 Eq for ContextDecisionV1
Source§impl PartialEq for ContextDecisionV1
impl PartialEq for ContextDecisionV1
Source§impl Serialize for ContextDecisionV1
impl Serialize for ContextDecisionV1
impl StructuralPartialEq for ContextDecisionV1
Auto Trait Implementations§
impl Forget for ContextDecisionV1
impl Freeze for ContextDecisionV1
impl Move for ContextDecisionV1
impl RefUnwindSafe for ContextDecisionV1
impl Send for ContextDecisionV1
impl Sync for ContextDecisionV1
impl Unpin for ContextDecisionV1
impl UnsafeUnpin for ContextDecisionV1
impl UnwindSafe for ContextDecisionV1
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