pub struct ReferenceAnswer {Show 13 fields
pub age: Option<String>,
pub as_of: Option<String>,
pub from: Option<String>,
pub hit: Option<bool>,
pub key: Option<String>,
pub matched: Option<String>,
pub refusal: Option<String>,
pub score: Option<f64>,
pub set: Option<String>,
pub stale: Option<bool>,
pub value: Option<HashMap<String, String>>,
pub verdict: Option<String>,
pub version: Option<String>,
}Fields§
§age: Option<String>Age is how old that is, as a duration.
as_of: Option<String>AsOf is when the oldest contributing publisher was current, RFC 3339.
from: Option<String>From is override or baseline — which plane answered.
hit: Option<bool>Hit is whether the key is a member. It is meaningful ONLY when Refusal is empty: false with a refusal means the set could not be consulted, which is not the same as the key being clean.
key: Option<String>Key is the key as asked.
matched: Option<String>Matched is the member that covered the key, which for a domain or a network is the enclosing entry rather than the key itself.
refusal: Option<String>Refusal is why the set could not be consulted, when it could not: never loaded, held elsewhere, or a source we hold no licence for. Non-empty means Hit must not be read as an answer.
score: Option<f64>Score is the published risk weight where the source expresses one.
set: Option<String>Set is the set consulted.
stale: Option<bool>Stale is whether the set is past its freshness bound. A stale set still answers — yesterday’s list beats none — and this is how a decision knows it leaned on one.
value: Option<HashMap<String, String>>Value is what the publisher says about the member — class, operator, scheme, region.
verdict: Option<String>Verdict is the tenant’s own allow or deny, present only for an override. The baseline never carries one: it states facts and leaves the decision to the caller’s policy.
version: Option<String>Version is the exact baseline version consulted, composed of each contributing publisher and its content digest. It is what makes a decision reproducible: an auditor takes this string and knows precisely what was consulted.
Implementations§
Source§impl ReferenceAnswer
impl ReferenceAnswer
pub fn new() -> ReferenceAnswer
Trait Implementations§
Source§impl Clone for ReferenceAnswer
impl Clone for ReferenceAnswer
Source§fn clone(&self) -> ReferenceAnswer
fn clone(&self) -> ReferenceAnswer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more