pub struct Evidence { /* private fields */ }Expand description
What an access shows of the data it reached.
Implementations§
Source§impl Evidence
impl Evidence
Sourcepub fn reached(basis: Basis, objects: Vec<RootObject>) -> Self
pub fn reached(basis: Basis, objects: Vec<RootObject>) -> Self
The evidence of an access that reached objects as basis
(Basis::Returned or Basis::Written).
Sourcepub fn no_category() -> Self
pub fn no_category() -> Self
The evidence of an access to a resource that holds no data of any
category, such as an EHR or an EHR_STATUS, with no kind named.
Sourcepub fn resource(kind: ResourceKind) -> Self
pub fn resource(kind: ResourceKind) -> Self
The evidence of an access to a resource of kind, which holds no data
of any category.
Sourcepub fn unreadable(why: Unreadable) -> Self
pub fn unreadable(why: Unreadable) -> Self
The evidence of an access whose data could not be read for their
ids, for the reason why.
Sourcepub fn queried(self, queried: Queried) -> Self
pub fn queried(self, queried: Queried) -> Self
This evidence, the request constraining its data as queried says.
Sourcepub fn with_unrooted(self) -> Self
pub fn with_unrooted(self) -> Self
This evidence, the access having delivered a value that is no root object, such as a leaf value or an aggregate, whose data the request’s constraints then classify beside the root objects.
Sourcepub fn constructed(self, category: Category) -> Self
pub fn constructed(self, category: Category) -> Self
This evidence, the request serving category by construction, such
as a request for a patient summary, whatever its data show: the
classification holds category on the basis Basis::Construction
beside every category the data show.
Sourcepub fn objects(&self) -> &[RootObject]
pub fn objects(&self) -> &[RootObject]
The root objects the access reached.