pub struct Annotation<L = OwlLiteral, B = BlankNodeId> { /* private fields */ }Expand description
An OWL annotation.
Implementations§
Source§impl<L, B> Annotation<L, B>
impl<L, B> Annotation<L, B>
Sourcepub fn new(property: Iri<String>, value: AnnotationValue<L, B>) -> Self
pub fn new(property: Iri<String>, value: AnnotationValue<L, B>) -> Self
Create an annotation from an annotation property IRI and value.
Sourcepub fn value(&self) -> &AnnotationValue<L, B>
pub fn value(&self) -> &AnnotationValue<L, B>
Return the annotation value.
Trait Implementations§
Source§impl<'de, L, B> Deserialize<'de> for Annotation<L, B>where
L: Deserialize<'de>,
B: Deserialize<'de>,
impl<'de, L, B> Deserialize<'de> for Annotation<L, B>where
L: Deserialize<'de>,
B: Deserialize<'de>,
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<L: Eq, B: Eq> Eq for Annotation<L, B>
Source§impl<L, B> Serialize for Annotation<L, B>
impl<L, B> Serialize for Annotation<L, B>
impl<L: PartialEq, B: PartialEq> StructuralPartialEq for Annotation<L, B>
Auto Trait Implementations§
impl<L, B> Freeze for Annotation<L, B>where
AnnotationValue<L, B>: Freeze,
impl<L, B> RefUnwindSafe for Annotation<L, B>where
AnnotationValue<L, B>: RefUnwindSafe,
impl<L, B> Send for Annotation<L, B>where
AnnotationValue<L, B>: Send,
impl<L, B> Sync for Annotation<L, B>where
AnnotationValue<L, B>: Sync,
impl<L, B> Unpin for Annotation<L, B>where
AnnotationValue<L, B>: Unpin,
impl<L, B> UnsafeUnpin for Annotation<L, B>where
AnnotationValue<L, B>: UnsafeUnpin,
impl<L, B> UnwindSafe for Annotation<L, B>where
AnnotationValue<L, B>: UnwindSafe,
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