pub struct ProfileDef {
pub keyword: &'static str,
pub version_iri: &'static str,
pub aliases: &'static [&'static str],
pub title: &'static str,
}Fields§
§keyword: &'static strShort keyword, e.g. EQ, SSH.
version_iri: &'static strCanonical IRI, written as md:Model.profile on export.
aliases: &'static [&'static str]Further IRIs that also denote this profile when read.
Published models name profiles by IRIs that changed between revisions, and some profiles have more than one accepted form.
title: &'static strImplementations§
Source§impl ProfileDef
impl ProfileDef
Sourcepub fn matches_iri(&self, iri: &str) -> bool
pub fn matches_iri(&self, iri: &str) -> bool
Whether iri denotes this profile, ignoring the trailing version segment.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ProfileDef
impl Freeze for ProfileDef
impl Move for ProfileDef
impl RefUnwindSafe for ProfileDef
impl Send for ProfileDef
impl Sync for ProfileDef
impl Unpin for ProfileDef
impl UnsafeUnpin for ProfileDef
impl UnwindSafe for ProfileDef
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