pub enum OntologyPatchOperation<L = OwlLiteral, B = BlankNodeId> {
AddImport {
import_iri: Iri<String>,
},
RemoveImport {
import_iri: Iri<String>,
},
AddAnnotation {
annotation: Annotation<L, B>,
},
RemoveAnnotation {
annotation: Annotation<L, B>,
},
AddAxiom {
axiom: Axiom<L, B>,
},
RemoveAxiom {
axiom: Axiom<L, B>,
},
}Expand description
One structural ontology patch operation.
Variants§
AddImport
Add an import declaration.
RemoveImport
Remove an import declaration.
AddAnnotation
Add an ontology annotation.
Fields
§
annotation: Annotation<L, B>Ontology annotation.
RemoveAnnotation
Remove an ontology annotation.
Fields
§
annotation: Annotation<L, B>Ontology annotation.
AddAxiom
Add a structural axiom.
RemoveAxiom
Remove a structural axiom.
Trait Implementations§
Source§impl<'de, L, B> Deserialize<'de> for OntologyPatchOperation<L, B>where
L: Deserialize<'de>,
B: Deserialize<'de>,
impl<'de, L, B> Deserialize<'de> for OntologyPatchOperation<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 OntologyPatchOperation<L, B>
Source§impl<L, B> Serialize for OntologyPatchOperation<L, B>
impl<L, B> Serialize for OntologyPatchOperation<L, B>
impl<L: PartialEq, B: PartialEq> StructuralPartialEq for OntologyPatchOperation<L, B>
Auto Trait Implementations§
impl<L, B> Freeze for OntologyPatchOperation<L, B>
impl<L, B> RefUnwindSafe for OntologyPatchOperation<L, B>
impl<L, B> Send for OntologyPatchOperation<L, B>
impl<L, B> Sync for OntologyPatchOperation<L, B>
impl<L, B> Unpin for OntologyPatchOperation<L, B>
impl<L, B> UnsafeUnpin for OntologyPatchOperation<L, B>
impl<L, B> UnwindSafe for OntologyPatchOperation<L, B>
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