pub struct RdfPatch {
pub headers: Vec<PatchHeader>,
pub changes: Vec<PatchChange>,
}Expand description
A complete RDF Patch document: a list of headers followed by change lines
Fields§
§headers: Vec<PatchHeader>Header entries (H key value)
changes: Vec<PatchChange>Change entries (TX / TC / TA / PA / PD / A / D)
Implementations§
Source§impl RdfPatch
impl RdfPatch
Sourcepub fn with_changes(
headers: Vec<PatchHeader>,
changes: Vec<PatchChange>,
) -> Self
pub fn with_changes( headers: Vec<PatchHeader>, changes: Vec<PatchChange>, ) -> Self
Construct a patch with headers and changes
Sourcepub fn delete_count(&self) -> usize
pub fn delete_count(&self) -> usize
Count how many triple/quad deletions are in the patch
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RdfPatch
impl RefUnwindSafe for RdfPatch
impl Send for RdfPatch
impl Sync for RdfPatch
impl Unpin for RdfPatch
impl UnsafeUnpin for RdfPatch
impl UnwindSafe for RdfPatch
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<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 more