pub struct OntologyPatch<L = OwlLiteral, B = BlankNodeId> { /* private fields */ }Expand description
A non-empty collection of structural changes for one ontology identity.
Implementations§
Source§impl<L, B> OntologyPatch<L, B>
impl<L, B> OntologyPatch<L, B>
Sourcepub fn try_new(
target: OntologyId,
operations: Vec<OntologyPatchOperation<L, B>>,
) -> Result<Self, StructuralModelError>
pub fn try_new( target: OntologyId, operations: Vec<OntologyPatchOperation<L, B>>, ) -> Result<Self, StructuralModelError>
Create a non-empty ontology patch.
§Errors
Returns StructuralModelError::InvalidFormat when no operations are
supplied.
Sourcepub fn target(&self) -> &OntologyId
pub fn target(&self) -> &OntologyId
Return the patch target ontology ID.
Sourcepub fn operations(&self) -> &[OntologyPatchOperation<L, B>]
pub fn operations(&self) -> &[OntologyPatchOperation<L, B>]
Return patch operations.
Trait Implementations§
Source§impl<'de, L, B> Deserialize<'de> for OntologyPatch<L, B>where
L: Deserialize<'de>,
B: Deserialize<'de>,
impl<'de, L, B> Deserialize<'de> for OntologyPatch<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 OntologyPatch<L, B>
Source§impl<L, B> Serialize for OntologyPatch<L, B>
impl<L, B> Serialize for OntologyPatch<L, B>
impl<L: PartialEq, B: PartialEq> StructuralPartialEq for OntologyPatch<L, B>
Auto Trait Implementations§
impl<L, B> Freeze for OntologyPatch<L, B>
impl<L, B> RefUnwindSafe for OntologyPatch<L, B>
impl<L, B> Send for OntologyPatch<L, B>
impl<L, B> Sync for OntologyPatch<L, B>
impl<L, B> Unpin for OntologyPatch<L, B>
impl<L, B> UnsafeUnpin for OntologyPatch<L, B>
impl<L, B> UnwindSafe for OntologyPatch<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