pub enum AnnotationValue<L = OwlLiteral, B = BlankNodeId> {
Iri(Iri<String>),
AnonymousIndividual(B),
Literal(L),
}Expand description
A value that can appear in an OWL annotation.
Variants§
Iri(Iri<String>)
An IRI-valued annotation.
AnonymousIndividual(B)
An anonymous-individual-valued annotation.
Literal(L)
A literal-valued annotation.
Implementations§
Source§impl<L, B> AnnotationValue<L, B>
impl<L, B> AnnotationValue<L, B>
Sourcepub fn anonymous_individual(identity: B) -> Self
pub fn anonymous_individual(identity: B) -> Self
Construct an annotation value from a caller-owned anonymous identity.
Trait Implementations§
Source§impl<'de, L, B> Deserialize<'de> for AnnotationValue<L, B>where
L: Deserialize<'de>,
B: Deserialize<'de>,
impl<'de, L, B> Deserialize<'de> for AnnotationValue<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 AnnotationValue<L, B>
Source§impl<L, B> Serialize for AnnotationValue<L, B>
impl<L, B> Serialize for AnnotationValue<L, B>
impl<L: PartialEq, B: PartialEq> StructuralPartialEq for AnnotationValue<L, B>
Auto Trait Implementations§
impl<L, B> Freeze for AnnotationValue<L, B>
impl<L, B> RefUnwindSafe for AnnotationValue<L, B>where
B: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, B> Send for AnnotationValue<L, B>
impl<L, B> Sync for AnnotationValue<L, B>
impl<L, B> Unpin for AnnotationValue<L, B>
impl<L, B> UnsafeUnpin for AnnotationValue<L, B>where
B: UnsafeUnpin,
L: UnsafeUnpin,
impl<L, B> UnwindSafe for AnnotationValue<L, B>where
B: UnwindSafe,
L: 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