Skip to main content

PatchOp

Enum PatchOp 

Source
pub enum PatchOp {
Show 41 variants CreateEntity { entity_iri: String, kind: PatchEntityKind, }, DeleteEntity { entity_iri: String, }, SetLabel { entity_iri: String, value: String, }, AddLabel { entity_iri: String, value: String, }, RemoveLabel { entity_iri: String, value: String, }, SetComment { entity_iri: String, value: String, }, AddComment { entity_iri: String, value: String, }, RemoveComment { entity_iri: String, value: String, }, AddSubClassOf { entity_iri: String, parent_iri: String, }, RemoveSubClassOf { entity_iri: String, parent_iri: String, }, AddComplexSubClassOf { entity_iri: String, manchester: String, }, RemoveComplexSubClassOf { entity_iri: String, manchester: String, }, AddEquivalentClass { entity_iri: String, manchester: String, }, RemoveEquivalentClass { entity_iri: String, manchester: String, }, SetEquivalentClass { entity_iri: String, manchester: String, }, SetDeprecated { entity_iri: String, value: bool, }, AddDisjointClass { entity_iri: String, other_iri: String, }, RemoveDisjointClass { entity_iri: String, other_iri: String, }, AddImport { ontology_iri: String, import_iri: String, }, RemoveImport { ontology_iri: String, import_iri: String, }, AddDomain { entity_iri: String, class_iri: String, }, RemoveDomain { entity_iri: String, class_iri: String, }, AddRange { entity_iri: String, range_iri: String, }, RemoveRange { entity_iri: String, range_iri: String, }, SetFunctional { entity_iri: String, value: bool, }, SetInverseFunctional { entity_iri: String, value: bool, }, SetTransitive { entity_iri: String, value: bool, }, SetSymmetric { entity_iri: String, value: bool, }, SetAsymmetric { entity_iri: String, value: bool, }, SetReflexive { entity_iri: String, value: bool, }, SetIrreflexive { entity_iri: String, value: bool, }, AddPropertyChain { entity_iri: String, properties: Vec<String>, }, RemovePropertyChain { entity_iri: String, properties: Vec<String>, }, AddClassAssertion { entity_iri: String, class_iri: String, }, RemoveClassAssertion { entity_iri: String, class_iri: String, }, AddObjectPropertyAssertion { entity_iri: String, property_iri: String, target_iri: String, }, RemoveObjectPropertyAssertion { entity_iri: String, property_iri: String, target_iri: String, }, AddDataPropertyAssertion { entity_iri: String, property_iri: String, value: String, }, RemoveDataPropertyAssertion { entity_iri: String, property_iri: String, value: String, }, AddAnnotation { entity_iri: String, predicate: String, value: String, }, RemoveAnnotation { entity_iri: String, predicate: String, value: String, },
}
Expand description

A single authoring patch operation (v0.4 Turtle scope).

Variants§

§

CreateEntity

Fields

§entity_iri: String
§

DeleteEntity

Fields

§entity_iri: String
§

SetLabel

Fields

§entity_iri: String
§value: String
§

AddLabel

Fields

§entity_iri: String
§value: String
§

RemoveLabel

Fields

§entity_iri: String
§value: String
§

SetComment

Fields

§entity_iri: String
§value: String
§

AddComment

Fields

§entity_iri: String
§value: String
§

RemoveComment

Fields

§entity_iri: String
§value: String
§

AddSubClassOf

Fields

§entity_iri: String
§parent_iri: String
§

RemoveSubClassOf

Fields

§entity_iri: String
§parent_iri: String
§

AddComplexSubClassOf

Fields

§entity_iri: String
§manchester: String
§

RemoveComplexSubClassOf

Fields

§entity_iri: String
§manchester: String
§

AddEquivalentClass

Fields

§entity_iri: String
§manchester: String
§

RemoveEquivalentClass

Fields

§entity_iri: String
§manchester: String
§

SetEquivalentClass

Fields

§entity_iri: String
§manchester: String
§

SetDeprecated

Fields

§entity_iri: String
§value: bool
§

AddDisjointClass

Fields

§entity_iri: String
§other_iri: String
§

RemoveDisjointClass

Fields

§entity_iri: String
§other_iri: String
§

AddImport

Fields

§ontology_iri: String
§import_iri: String
§

RemoveImport

Fields

§ontology_iri: String
§import_iri: String
§

AddDomain

Fields

§entity_iri: String
§class_iri: String
§

RemoveDomain

Fields

§entity_iri: String
§class_iri: String
§

AddRange

Fields

§entity_iri: String
§range_iri: String
§

RemoveRange

Fields

§entity_iri: String
§range_iri: String
§

SetFunctional

Fields

§entity_iri: String
§value: bool
§

SetInverseFunctional

Fields

§entity_iri: String
§value: bool
§

SetTransitive

Fields

§entity_iri: String
§value: bool
§

SetSymmetric

Fields

§entity_iri: String
§value: bool
§

SetAsymmetric

Fields

§entity_iri: String
§value: bool
§

SetReflexive

Fields

§entity_iri: String
§value: bool
§

SetIrreflexive

Fields

§entity_iri: String
§value: bool
§

AddPropertyChain

Fields

§entity_iri: String
§properties: Vec<String>
§

RemovePropertyChain

Fields

§entity_iri: String
§properties: Vec<String>
§

AddClassAssertion

Fields

§entity_iri: String
§class_iri: String
§

RemoveClassAssertion

Fields

§entity_iri: String
§class_iri: String
§

AddObjectPropertyAssertion

Fields

§entity_iri: String
§property_iri: String
§target_iri: String
§

RemoveObjectPropertyAssertion

Fields

§entity_iri: String
§property_iri: String
§target_iri: String
§

AddDataPropertyAssertion

Fields

§entity_iri: String
§property_iri: String
§value: String
§

RemoveDataPropertyAssertion

Fields

§entity_iri: String
§property_iri: String
§value: String
§

AddAnnotation

Fields

§entity_iri: String
§predicate: String
§value: String
§

RemoveAnnotation

Fields

§entity_iri: String
§predicate: String
§value: String

Trait Implementations§

Source§

impl Clone for PatchOp

Source§

fn clone(&self) -> PatchOp

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PatchOp

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PatchOp

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for PatchOp

Source§

impl PartialEq for PatchOp

Source§

fn eq(&self, other: &PatchOp) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PatchOp

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PatchOp

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V