pub struct OntologyPatch { /* private fields */ }Expand description
A non-empty collection of structural changes for one ontology identity.
Implementations§
Source§impl OntologyPatch
impl OntologyPatch
Sourcepub fn try_new(
target: OntologyId,
operations: Vec<OntologyPatchOperation>,
) -> Result<Self, StructuralModelError>
pub fn try_new( target: OntologyId, operations: Vec<OntologyPatchOperation>, ) -> 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]
pub fn operations(&self) -> &[OntologyPatchOperation]
Return patch operations.
Trait Implementations§
Source§impl Clone for OntologyPatch
impl Clone for OntologyPatch
Source§fn clone(&self) -> OntologyPatch
fn clone(&self) -> OntologyPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OntologyPatch
impl Debug for OntologyPatch
Source§impl<'de> Deserialize<'de> for OntologyPatch
impl<'de> Deserialize<'de> for OntologyPatch
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 Eq for OntologyPatch
Source§impl PartialEq for OntologyPatch
impl PartialEq for OntologyPatch
Source§impl Serialize for OntologyPatch
impl Serialize for OntologyPatch
impl StructuralPartialEq for OntologyPatch
Auto Trait Implementations§
impl Freeze for OntologyPatch
impl RefUnwindSafe for OntologyPatch
impl Send for OntologyPatch
impl Sync for OntologyPatch
impl Unpin for OntologyPatch
impl UnsafeUnpin for OntologyPatch
impl UnwindSafe for OntologyPatch
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