pub enum PatchChange {
AddPrefix {
prefix: String,
iri: String,
},
DeletePrefix {
prefix: String,
iri: String,
},
AddTriple(PatchTriple),
DeleteTriple(PatchTriple),
AddQuad(PatchQuad),
DeleteQuad(PatchQuad),
TransactionBegin,
TransactionCommit,
TransactionAbort,
}Expand description
A single change line in an RDF Patch document
Variants§
AddPrefix
PA prefix <iri> — add a prefix declaration
DeletePrefix
PD prefix <iri> — delete a prefix declaration
AddTriple(PatchTriple)
A <s> <p> <o> . — add a triple
DeleteTriple(PatchTriple)
D <s> <p> <o> . — delete a triple
AddQuad(PatchQuad)
A <s> <p> <o> <g> . — add a quad
DeleteQuad(PatchQuad)
D <s> <p> <o> <g> . — delete a quad
TransactionBegin
TX — begin a transaction block
TransactionCommit
TC — commit a transaction block
TransactionAbort
TA — abort a transaction block
Implementations§
Source§impl PatchChange
impl PatchChange
Sourcepub fn line_prefix(&self) -> &'static str
pub fn line_prefix(&self) -> &'static str
Return the line prefix that represents this change in the patch format
Sourcepub fn is_transaction_control(&self) -> bool
pub fn is_transaction_control(&self) -> bool
Return true if this is a transaction control statement
Trait Implementations§
Source§impl Clone for PatchChange
impl Clone for PatchChange
Source§fn clone(&self) -> PatchChange
fn clone(&self) -> PatchChange
Returns a duplicate of the value. Read more
1.0.0 · 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 PatchChange
impl Debug for PatchChange
Source§impl Display for PatchChange
impl Display for PatchChange
Source§impl PartialEq for PatchChange
impl PartialEq for PatchChange
impl Eq for PatchChange
impl StructuralPartialEq for PatchChange
Auto Trait Implementations§
impl Freeze for PatchChange
impl RefUnwindSafe for PatchChange
impl Send for PatchChange
impl Sync for PatchChange
impl Unpin for PatchChange
impl UnsafeUnpin for PatchChange
impl UnwindSafe for PatchChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.