pub struct PredicateProfile {
pub iri: &'static str,
pub object_kinds: &'static [ObjectKind],
pub task_context_required: bool,
pub minimum_issuer_scope: Option<IssuerScope>,
}Expand description
The machine-checkable constraints of one predicate profile.
The four core profiles are PredicateProfile::core. A community profile is expressed through crate::PredicateAcceptList, whose registry entries carry the same constraints.
Fields§
§iri: &'static strThe predicate IRI.
object_kinds: &'static [ObjectKind]The object kinds the profile permits.
task_context_required: boolWhether taskContext — and with it taskDigestMultibase — is REQUIRED.
minimum_issuer_scope: Option<IssuerScope>The narrowest issuerScope the issuer can truthfully declare, if the profile sets
one.
Implementations§
Source§impl PredicateProfile
impl PredicateProfile
Sourcepub fn core(iri: &str) -> Option<&'static PredicateProfile>
pub fn core(iri: &str) -> Option<&'static PredicateProfile>
The core profile for iri — ENDORSES_V1, WITNESSED_V1, VETTED_V1 or
PRESENTED_V1 — matched byte for byte.
Sourcepub fn all_core() -> &'static [PredicateProfile]
pub fn all_core() -> &'static [PredicateProfile]
Every core profile this library implements.
Trait Implementations§
Source§impl Clone for PredicateProfile
impl Clone for PredicateProfile
impl Copy for PredicateProfile
Source§impl Debug for PredicateProfile
impl Debug for PredicateProfile
impl Eq for PredicateProfile
Source§impl PartialEq for PredicateProfile
impl PartialEq for PredicateProfile
impl StructuralPartialEq for PredicateProfile
Auto Trait Implementations§
impl Freeze for PredicateProfile
impl RefUnwindSafe for PredicateProfile
impl Send for PredicateProfile
impl Sync for PredicateProfile
impl Unpin for PredicateProfile
impl UnsafeUnpin for PredicateProfile
impl UnwindSafe for PredicateProfile
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